]> git.baikalelectronics.ru Git - kernel.git/commit
sched, perf: Use a single callback into the scheduler
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 8 May 2012 16:56:04 +0000 (18:56 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 13:23:17 +0000 (15:23 +0200)
commite74cbbedfedbcc9396c13e3cbc3be82939cd303c
tree7335f4ca82dc0366ffbf9dc8de5396259213435a
parenteb58485eb1de9830e39bcdedc3eebd5dad71375f
sched, perf: Use a single callback into the scheduler

We can easily use a single callback for both sched-in and sched-out. This
reduces the code footprint in the scheduler path as well as removes
the PMU black spot otherwise present between the out and in callback.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-o56ajxp1edwqg6x9d31wb805@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/perf_event.h
kernel/events/core.c
kernel/sched/core.c