aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2012-05-25 22:08:57 +0000
committerThomas Gleixner <[email protected]>2012-06-06 13:49:01 +0200
commitec44bc7acc3687ba6ae8154b4b5a845b70279237 (patch)
tree56149499de97126be42cfb302a2f1da420dd55c5 /tools/perf/util/scripting-engines/trace-event-python.c
parenteea5b5510fc5545d15b69da8e485a7424ae388cf (diff)
timers: Create detach_if_pending() and use it
Most callers of detach_timer() have the same pattern around them. Check whether the timer is pending and eventually updating base->next_timer. Create detach_if_pending() and replace the duplicated code. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Gilad Ben-Yossef <[email protected]> Cc: Frederic Weisbecker <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions