| From: Suresh Siddha <suresh.b.siddha@intel.com> |
| Date: Fri, 9 Jul 2010 13:19:54 +0000 (+0200) |
| Subject: sched: Update rq->clock for nohz balanced cpus |
| X-Git-Tag: v2.6.36-rc1~531^2~5 |
| X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=5343bdb8fd076f16edc9d113a9e35e2a1d1f4966 |
| |
| sched: Update rq->clock for nohz balanced cpus |
| |
| Suresh spotted that we don't update the rq->clock in the nohz |
| load-balancer path. |
| |
| Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> |
| LKML-Reference: <1278626014.2834.74.camel@sbs-t61.sc.intel.com> |
| Signed-off-by: Ingo Molnar <mingo@elte.hu> |
| |
| |
| diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c |
| index b4da534..e44a591 100644 |
| |
| |
| @@ -3596,6 +3596,7 @@ static void nohz_idle_balance(int this_cpu, enum cpu_idle_type idle) |
| } |
| |
| raw_spin_lock_irq(&this_rq->lock); |
| + update_rq_clock(this_rq); |
| update_cpu_load(this_rq); |
| raw_spin_unlock_irq(&this_rq->lock); |
| |