]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:51 +0000 (18:07 -0500)
commit61b3749e9e41eee782bae9cfb21ba81d10f5f583
treef8e408a6880654bb0a5ee8038d2e8192379197d4
parentc7298d912a4eeaebf64b33ec60f2736fdbb49135
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: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/sched.c