projects
/
ziggy471-sgn2-jb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
latest snapshot
plain
|
history
TIMER: optimize apply_slack()
/kernel/timer.c
blob:
b7474f32e11ca6a7e044d5eb8119c5c1ccb6e6e0
-> blob:
8cff36119e4d50f7336a06e8d01e59e8b162e694
--- kernel/timer.c
+++ kernel/timer.c
@@ -763,7 +763,7 @@ unsigned long apply_slack(struct timer_l
if (mask == 0)
return expires;
- bit = __fls(mask);
+ bit = find_last_bit(&mask, BITS_PER_LONG);
mask = (1 << bit) - 1;