From: Peter Zijlstra Date: Tue, 5 Apr 2011 15:23:45 +0000 (+0200) Subject: sched: Serialize p->cpus_allowed and ttwu() using p->pi_lock X-Git-Tag: v3.0-rc1~357^2~2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=013fdb8086acaae5f8eb96f9ad48fcd98882ac46;p=pandora-kernel.git sched: Serialize p->cpus_allowed and ttwu() using p->pi_lock Currently p->pi_lock already serializes p->sched_class, also put p->cpus_allowed and try_to_wake_up() under it, this prepares the way to do the first part of ttwu() without holding rq->lock. By having p->sched_class and p->cpus_allowed serialized by p->pi_lock, we prepare the way to call select_task_rq() without holding rq->lock. 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/20110405152728.990364093@chello.nl Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed