]> git.baikalelectronics.ru Git - kernel.git/commit
perf: De-schedule a task context when removing the last event
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 9 Apr 2011 19:17:48 +0000 (21:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 28 May 2011 16:01:23 +0000 (18:01 +0200)
commit71a1a7c943b1bad73a3a0058c696020c99302809
tree884c247a013b8d13fa7a1f90dfa5bc01e16d62d6
parent836778f153e3c2a12623c4595ae8a71eb35fdc3a
perf: De-schedule a task context when removing the last event

Since perf_install_in_context() will now install a context when we
add the first event, we can de-schedule the context when the last
event is removed.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110409192142.090431763@chello.nl
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/events/core.c