sched: Push put_prev_task() into pick_next_task()
authorPeter Zijlstra <peterz@infradead.org>
Sat, 11 Feb 2012 05:05:00 +0000 (06:05 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 10 Feb 2014 15:17:13 +0000 (16:17 +0100)
commit606dba2e289446600a0b68422ed2019af5355c12
tree286562f6ddcca34f3f029b68507b820f0c81b707
parentfed14d45f945042a15b09de48d7d3d58d9455fc4
sched: Push put_prev_task() into pick_next_task()

In order to avoid having to do put/set on a whole cgroup hierarchy
when we context switch, push the put into pick_next_task() so that
both operations are in the same function. Further changes then allow
us to possibly optimize away redundant work.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1328936700.2476.17.camel@laptop
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/idle_task.c
kernel/sched/rt.c
kernel/sched/sched.h
kernel/sched/stop_task.c