]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched: Optimize task_rq_lock()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 25 Mar 2010 20:05:16 +0000 (21:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:18:09 +0000 (13:18 -0700)
commit6975fc131cbca470ddabd070c911a94aaad75ea3
tree097bce232d2878a2cc0b44969acd356f5dcb0e30
parent6d94134f5f3f8bede26d4f700e17154d590d6d6e
sched: Optimize task_rq_lock()

commit 65cc8e4859ff29a9ddc989c88557d6059834c2a2 upstream

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>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/sched.c