From: Peter Zijlstra Date: Tue, 5 Apr 2011 15:23:53 +0000 (+0200) Subject: sched: Drop rq->lock from sched_exec() X-Git-Tag: v3.0-rc1~357^2~2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f42ced974df7d5af2de4cf5ea21fe978c7e4478;p=pandora-kernel.git sched: Drop rq->lock from sched_exec() Since we can now call select_task_rq() and set_task_cpu() with only p->pi_lock held, and sched_exec() load-balancing has always been optimistic, drop all rq->lock usage. Oleg also noted that need_migrate_task() will always be true for current, so don't bother calling that at all. Reviewed-by: Frank Rowand Signed-off-by: Peter Zijlstra Cc: Mike Galbraith Cc: Nick Piggin Cc: Linus Torvalds Cc: Andrew Morton Link: http://lkml.kernel.org/r/20110405152729.314204889@chello.nl Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed