sched: Optimize migrate_disable
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 11 Aug 2011 13:03:35 +0000 (15:03 +0200)
committerClark Williams <williams@redhat.com>
Wed, 15 Feb 2012 16:32:50 +0000 (10:32 -0600)
commitdce5b35c195cf474a34e93d101cc1420eb285f51
tree7abf91ab8d214d73d74a6349e966a4f9d6fe8523
parent1aa3d173730be63661eef236a90dbe453a8eb76c
sched: Optimize migrate_disable

Change from task_rq_lock() to raw_spin_lock(&rq->lock) to avoid a few
atomic ops. See comment on why it should be safe.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-cbz6hkl5r5mvwtx5s3tor2y6@git.kernel.org
kernel/sched.c