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