Skip to content

Commit cc03796

Browse files
Charles Wanghardkernel
authored andcommitted
sched: Add missing call to calc_load_exit_idle()
Azat Khuzhin reported high loadavg in Linux v3.6 After checking the upstream scheduler code, I found Peter's commit: 5167e8d sched/nohz: Rewrite and fix load-avg computation -- again not fully applied, missing the call to 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 adds the missing call to calc_load_exit_idle(). Signed-off-by: Charles Wang <[email protected]> Cc: [email protected] Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]> Conflicts: kernel/time/tick-sched.c
1 parent c809f4d commit cc03796

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/time/tick-sched.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ static void tick_nohz_update_jiffies(ktime_t now)
146146
tick_do_update_jiffies64(now);
147147
local_irq_restore(flags);
148148

149+
calc_load_exit_idle();
149150
touch_softlockup_watchdog();
150151
}
151152

0 commit comments

Comments
 (0)