diff options
Diffstat (limited to 'lib/utils/timer')
| -rw-r--r-- | lib/utils/timer/aclint_mtimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/timer/aclint_mtimer.c b/lib/utils/timer/aclint_mtimer.c index 2532b638..a957b1ca 100644 --- a/lib/utils/timer/aclint_mtimer.c +++ b/lib/utils/timer/aclint_mtimer.c @@ -154,7 +154,7 @@ static int aclint_mtimer_add_regions(unsigned long addr, unsigned long size) while (pos < end) { rsize = pos & (MTIMER_ADD_REGION_ALIGN - 1); if (rsize) - rsize = 1UL << __ffs(pos); + rsize = 1UL << sbi_ffs(pos); else rsize = ((end - pos) < MTIMER_ADD_REGION_ALIGN) ? (end - pos) : MTIMER_ADD_REGION_ALIGN; |
