aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/process.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-11-02 17:24:33 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-02 17:24:33 -0500
commita054a811597a17ffbe92bc4db04a4dc2f1b1ea55 (patch)
treeb600081d964d6fe7cc1cfe2669a739da0e1743f4 /arch/arm/kernel/process.c
parent273c2cdb2b6d6743d85ddbde82e71f8adbf5bf10 (diff)
[ARM SMP] Add hotplug CPU infrastructure
This patch adds the infrastructure to support hotplug CPU on ARM platforms. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/process.c')
-rw-r--r--arch/arm/kernel/process.c9
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();