diff options
author | Anna-Maria Gleixner <[email protected]> | 2017-12-21 11:41:39 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-01-16 02:35:46 +0100 |
commit | c272ca58c3ec5631f4ab507489d9477f74efe645 (patch) | |
tree | e117843b4055a931b4973dbf270f3a16b07b6f32 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
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]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions