From: Chad Goodman Date: Fri, 21 Dec 2012 04:00:08 +0000 (-0800) Subject: ARM: Fix negative idle stats for offline cpu X-Git-Url: https://ziggy471.com/git/gitweb.cgi?p=ziggy471-sgs3-jb.git;a=commitdiff;h=61f0c6b97352b7a40e23036866596c0650ed5c36 ARM: Fix negative idle stats for offline cpu Signed-off-by: Ziggy --- --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -229,11 +229,6 @@ void cpu_idle(void) idle_notifier_call_chain(IDLE_START); tick_nohz_stop_sched_tick(1); while (!need_resched()) { -#ifdef CONFIG_HOTPLUG_CPU - if (cpu_is_offline(smp_processor_id())) - cpu_die(); -#endif - local_irq_disable(); #ifdef CONFIG_PL310_ERRATA_769419 wmb(); @@ -259,6 +254,10 @@ void cpu_idle(void) preempt_enable_no_resched(); schedule(); preempt_disable(); +#ifdef CONFIG_HOTPLUG_CPU + if (cpu_is_offline(smp_processor_id())) + cpu_die(); +#endif } }