sched/nohz: Rewrite and fix load-avg computation -- again
[pandora-kernel.git] / kernel / time / tick-sched.c
index c923640..9955ebd 100644 (file)
@@ -430,6 +430,7 @@ void tick_nohz_stop_sched_tick(int inidle)
                 */
                if (!ts->tick_stopped) {
                        select_nohz_load_balancer(1);
+                       calc_load_enter_idle();
 
                        ts->idle_tick = hrtimer_get_expires(&ts->sched_timer);
                        ts->tick_stopped = 1;
@@ -563,6 +564,7 @@ void tick_nohz_restart_sched_tick(void)
                account_idle_ticks(ticks);
 #endif
 
+       calc_load_exit_idle();
        touch_softlockup_watchdog();
        /*
         * Cancel the scheduled timer and restore the tick