ARM: idle: update idle ticks before call idle end notifier

Such that interactive cpufreq governor uses up-to-date idle time
information.

Reported by Colin Cross <ccross@android.com>

Change-Id: I06425444f800f803afc9dc7a6ad0fdb46c918bb6
Signed-off-by: Todd Poynor <toddpoynor@google.com>
This commit is contained in:
Todd Poynor 2011-11-03 21:05:41 -07:00
parent 050c06eed4
commit 2665c41357

View File

@ -248,8 +248,8 @@ void cpu_idle(void)
local_irq_enable();
}
}
idle_notifier_call_chain(IDLE_END);
tick_nohz_restart_sched_tick();
idle_notifier_call_chain(IDLE_END);
preempt_enable_no_resched();
schedule();
preempt_disable();