sched: Update the clock of runqueue select_task_rq() selected
authorMike Galbraith <efault@gmx.de>
Fri, 9 Oct 2009 06:35:03 +0000 (08:35 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 9 Oct 2009 13:58:11 +0000 (15:58 +0200)
commitf5dc37530ba8a35aae0f7f4f13781d1904f71e94
tree866894f6bf41876a7c6096912c82e73d140d3071
parent36a07902c2134649c4af7f07980413ffb1a56085
sched: Update the clock of runqueue select_task_rq() selected

In try_to_wake_up(), we update the runqueue clock, but
select_task_rq() may select a different runqueue than the one we
updated, leaving the new runqueue's clock stale for a bit.

This patch cures occasional huge latencies reported by latencytop
when coming out of idle on a mostly idle NO_HZ box.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1255070103.7639.30.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c