From: Todd Poynor Date: Fri, 4 Nov 2011 04:05:41 +0000 (-0700) Subject: ARM: idle: update idle ticks before call idle end notifier X-Git-Tag: firefly_0821_release~7613^2~232 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2665c4135723dd7b15e8a5541956024b9ca138fa;p=firefly-linux-kernel-4.4.55.git 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 Change-Id: I06425444f800f803afc9dc7a6ad0fdb46c918bb6 Signed-off-by: Todd Poynor --- diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 6810cc1b7c42..54c97eee6173 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -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();