diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-23 05:33:20 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 06:09:26 +0300 |
commit | 36394d2f2429c48d1db4e26ad25f9541c8c1027f (patch) | |
tree | 5b9531f46c3053b4ad70f4775b1836289ecd682a /lib | |
parent | d25774ff962c7448d6e46e102e183d11abfd2ef2 (diff) | |
download | opensbi-36394d2f2429c48d1db4e26ad25f9541c8c1027f.tar.xz |
include: Drop MMIO from SBI_PLATFORM_HAS_MMIO_TIMER_VALUE
It is not necessary that platform has MMIO-based timer value
register. It can also have some custom (implementation specific)
CSR for timer value.
This patch renames SBI_PLATFORM_HAS_MMIO_TIMER_VALUE to
SBI_PLATFORM_HAS_TIMER_VALUE to imply "platform timer value"
instead of "mmio timer value".
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sbi_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi_timer.c b/lib/sbi_timer.c index 93b4d7e..0cef98a 100644 --- a/lib/sbi_timer.c +++ b/lib/sbi_timer.c @@ -41,7 +41,7 @@ u64 sbi_timer_value(struct sbi_scratch *scratch) { struct sbi_platform *plat = sbi_platform_ptr(scratch); - if (sbi_platform_has_mmio_timer_value(plat)) + if (sbi_platform_has_timer_value(plat)) return sbi_platform_timer_value(plat); else return get_ticks(); |