diff options
| author | Thomas Gleixner <[email protected]> | 2015-04-14 21:08:49 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2015-04-22 17:06:50 +0200 |
| commit | 895bdfa793f6e912d1a58fc445b3dd4d686f7bd3 (patch) | |
| tree | df602d9bb8097eb9cd0bd6f98addc9b5f5cd333d /tools/perf/scripts/python | |
| parent | b97f44c9b658d52e0139c947ea5519e51ba38d81 (diff) | |
hrtimer: Keep pointer to first timer and simplify __remove_hrtimer()
__remove_hrtimer() needs to evaluate the expiry time to figure out
whether the timer which is removed is eventually the first expiring
timer on the cpu. Keep a pointer to it, which is lazily updated, so we
can avoid the evaluation dance and retrieve the information from there.
Generates slightly better code.
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Preeti U Murthy <[email protected]>
Cc: Viresh Kumar <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions