sched: Optimize task_rq_lock()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 25 Mar 2010 20:05:16 +0000 (21:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 2 Apr 2010 18:12:04 +0000 (20:12 +0200)
commit65cc8e4859ff29a9ddc989c88557d6059834c2a2
tree7f12c2532a92d607b5c52fa71c1799631a7a91ff
parent0017d735092844118bef006696a750a0e4ef6ebd
sched: Optimize task_rq_lock()

Now that we hold the rq->lock over set_task_cpu() again, we can do
away with most of the TASK_WAKING checks and reduce them again to
set_cpus_allowed_ptr().

Removes some conditionals from scheduling hot-paths.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Oleg Nesterov <oleg@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c