commit | c272ca58c3ec5631f4ab507489d9477f74efe645 | [log] [tgz] |
---|---|---|
author | Anna-Maria Gleixner <[email protected]> | Thu Dec 21 11:41:39 2017 +0100 |
committer | Ingo Molnar <[email protected]> | Tue Jan 16 02:35:46 2018 +0100 |
tree | e117843b4055a931b4973dbf270f3a16b07b6f32 | |
parent | 63e2ed3659752a4850e0ef3a07f809988fcd74a4 [diff] |
hrtimer: Switch 'for' loop to _ffs() evaluation Looping over all clock bases to find active bits is suboptimal if not all bases are active. Avoid this by converting it to a __ffs() evaluation. The functionallity is outsourced into its own function and is called via a macro as suggested by Peter Zijlstra. Suggested-by: Peter Zijlstra <[email protected]> Signed-off-by: Anna-Maria Gleixner <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: John Stultz <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>