diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-02 21:38:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-02 21:38:22 -0500 |
commit | cfa024f4e45562c50b9eccb23649ab103578037b (patch) | |
tree | d49992521230a4e302c6d4bef9191e885220b82e /arch/arm/kernel/process.c | |
parent | 3a7142371efdc95f4c5b5ffc188b18efdc4e64dd (diff) | |
parent | a054a811597a17ffbe92bc4db04a4dc2f1b1ea55 (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
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(); |