From: Peter Zijlstra Date: Fri, 27 Nov 2009 13:12:25 +0000 (+0100) Subject: sched: Remove rq->clock coupling from set_task_cpu() X-Git-Tag: v2.6.33-rc1~298^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5afcdab706d6002cb02b567ba46e650215e694e8;p=pandora-kernel.git sched: Remove rq->clock coupling from set_task_cpu() set_task_cpu() should be rq invariant and only touch task state, it currently fails to do so, which opens up a few races, since not all callers hold both rq->locks. Remove the relyance on rq->clock, as any site calling set_task_cpu() should also do a remote clock update, which should ensure the observed time between these two cpus is monotonic, as per kernel/sched_clock.c:sched_clock_remote(). Therefore we can simply remove the clock_offset bits and be happy. Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed