ARM: Call idle notifiers
authorTodd Poynor <toddpoynor@google.com>
Thu, 16 Jun 2011 00:44:50 +0000 (17:44 -0700)
committerTodd Poynor <toddpoynor@google.com>
Fri, 15 Jul 2011 22:26:45 +0000 (15:26 -0700)
Change-Id: Id833e61c13baa1783705ac9e9046d1f0cc90c95e
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
arch/arm/kernel/process.c

index 34ea86448ea5990d23b76521b23dc8b164ff60f8..7dee54ae0b311ff4922d7df9c28751969c6ca66a 100644 (file)
@@ -184,6 +184,7 @@ void cpu_idle(void)
        while (1) {
                tick_nohz_stop_sched_tick(1);
                leds_event(led_idle_start);
+               idle_notifier_call_chain(IDLE_START);
                while (!need_resched()) {
 #ifdef CONFIG_HOTPLUG_CPU
                        if (cpu_is_offline(smp_processor_id()))
@@ -208,6 +209,7 @@ void cpu_idle(void)
                        }
                }
                leds_event(led_idle_end);
+               idle_notifier_call_chain(IDLE_END);
                tick_nohz_restart_sched_tick();
                preempt_enable_no_resched();
                schedule();