]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
perf_counter: Optimize disable of time based sw counters
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 20 May 2009 10:21:21 +0000 (12:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 20 May 2009 10:43:33 +0000 (12:43 +0200)
commitb986d7ec0f8b7ea3cc7366d80a137fbe839df227
treead3e9c473b8790f800cbf9e13e3fee01230def52
parent26b119bc811a73bac6ecf95bdf284bf31c7955f0
perf_counter: Optimize disable of time based sw counters

Currently we call hrtimer_cancel() unconditionally on disable of time based
software counters. Avoid when possible.

[ Impact: micro-optimize the code ]

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <20090520102553.388185031@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c