summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-12-02 14:04:55 +0800
committerAndy Green <andy.green@linaro.org>2011-12-02 14:04:55 +0800
commita6fb5ab0859f1f959bb3316bfd91844ca7b67eb6 (patch)
tree4c10b34f77a6795bccf049152fd18e96ff36f43e
parent849219c1c6a6a2126fa41acbb818b03ef43ea61d (diff)
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>
-rw-r--r--arch/arm/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index 1baa2bd932c..ef837df51e7 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -253,8 +253,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();