summaryrefslogtreecommitdiffstats
path: root/lib/ratelimit.c
diff options
context:
space:
mode:
authorPeter Zijlstra2009-11-27 14:12:25 +0100
committerIngo Molnar2009-12-09 10:03:03 +0100
commit5afcdab706d6002cb02b567ba46e650215e694e8 (patch)
tree015c3fb61dc8a4217bc83927efd7882e7d494d2b /lib/ratelimit.c
parentsched: Consolidate select_task_rq() callers (diff)
downloadkernel-qcow2-linux-5afcdab706d6002cb02b567ba46e650215e694e8.tar.gz
kernel-qcow2-linux-5afcdab706d6002cb02b567ba46e650215e694e8.tar.xz
kernel-qcow2-linux-5afcdab706d6002cb02b567ba46e650215e694e8.zip
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 <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/ratelimit.c')
0 files changed, 0 insertions, 0 deletions