public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: add missing call for calc_load_exit_idle
@ 2012-08-20  8:02 Charles Wang
  2012-08-20  8:13 ` Charles Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Charles Wang @ 2012-08-20  8:02 UTC (permalink / raw)
  To: peterz, linux-kernel, mingo, dsmythies; +Cc: Charles Wang, Charles Wang

>From Charles Wang <muming.wq@taobao.com>

Azat Khuzhin reported "high loadavg in linux-3.6"

After checking for upstream's code, I found Peter's patch
(Commit id:5167e8d5417bf5c322a703d2927daec727ea40dd) not be
fully applied, missing the call for calc_load_exit_idle.
After that idle exit in sampling window will always be calculated
 to non-idle, and the load will be higher than normal.

This patch add the missing call for calc_load_exit_idle.

Signed-off-by: Charles Wang <muming.wq@taobao.com>

diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 024540f..3a9e5d5 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -573,6 +573,7 @@ static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now)
 	tick_do_update_jiffies64(now);
 	update_cpu_load_nohz();
 
+	calc_load_exit_idle();
 	touch_softlockup_watchdog();
 	/*
 	 * Cancel the scheduled timer and restore the tick
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-04 18:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20  8:02 [PATCH] sched: add missing call for calc_load_exit_idle Charles Wang
2012-08-20  8:13 ` Charles Wang
2012-08-20  8:39 ` Peter Zijlstra
2012-09-04 18:44 ` [tip:sched/core] sched: Add missing call to calc_load_exit_idle() tip-bot for Charles Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox