diff options
Diffstat (limited to 'arch/arm/kernel/process.c')
-rw-r--r-- | arch/arm/kernel/process.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 409db6d5ec99..ba298277becd 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | #include <linux/kallsyms.h> | 27 | #include <linux/kallsyms.h> |
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/cpu.h> | ||
29 | 30 | ||
30 | #include <asm/system.h> | 31 | #include <asm/system.h> |
31 | #include <asm/io.h> | 32 | #include <asm/io.h> |
@@ -105,6 +106,14 @@ void cpu_idle(void) | |||
105 | /* endless idle loop with no priority at all */ | 106 | /* endless idle loop with no priority at all */ |
106 | while (1) { | 107 | while (1) { |
107 | void (*idle)(void) = pm_idle; | 108 | void (*idle)(void) = pm_idle; |
109 | |||
110 | #ifdef CONFIG_HOTPLUG_CPU | ||
111 | if (cpu_is_offline(smp_processor_id())) { | ||
112 | leds_event(led_idle_start); | ||
113 | cpu_die(); | ||
114 | } | ||
115 | #endif | ||
116 | |||
108 | if (!idle) | 117 | if (!idle) |
109 | idle = default_idle; | 118 | idle = default_idle; |
110 | preempt_disable(); | 119 | preempt_disable(); |