aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/timer.c b/kernel/timer.c
index f5bdb1b50..5245f4f9e 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -827,7 +827,7 @@ unsigned long apply_slack(struct timer_list *timer, unsigned long expires)
if (mask == 0)
return expires;
- bit = find_last_bit(&mask, BITS_PER_LONG);
+ bit = __fls(mask);
/* Round down by zero-ing the lower bits */
expires_limit = (expires_limit >> bit) << bit;