perf: Optimize ctx_sched_out()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 9 Apr 2011 19:17:40 +0000 (21:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 28 May 2011 16:01:09 +0000 (18:01 +0200)
commit075e0b00857e166dcc3e39037a1fc5a90acac709
tree448cc154bde8d50cb43578416467cfe94d8267c5
parentf506b3dc0ec454a16d40cab9ee5d75435b39dc50
perf: Optimize ctx_sched_out()

Oleg noted that ctx_sched_out() disables the PMU even though it might
not actually do something, avoid needless PMU-disabling.

Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110409192141.665385503@chello.nl
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/events/core.c