diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-03 03:38:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-03 03:38:22 +0100 |
commit | cfa024f4e45562c50b9eccb23649ab103578037b (patch) | |
tree | d49992521230a4e302c6d4bef9191e885220b82e /arch/arm/kernel/process.c | |
parent | Merge branch 'swiotlb' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/... (diff) | |
parent | [ARM SMP] Add hotplug CPU infrastructure (diff) | |
download | linux-cfa024f4e45562c50b9eccb23649ab103578037b.tar.xz linux-cfa024f4e45562c50b9eccb23649ab103578037b.zip |
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 @@ #include <linux/interrupt.h> #include <linux/kallsyms.h> #include <linux/init.h> +#include <linux/cpu.h> #include <asm/system.h> #include <asm/io.h> @@ -105,6 +106,14 @@ void cpu_idle(void) /* endless idle loop with no priority at all */ while (1) { void (*idle)(void) = pm_idle; + +#ifdef CONFIG_HOTPLUG_CPU + if (cpu_is_offline(smp_processor_id())) { + leds_event(led_idle_start); + cpu_die(); + } +#endif + if (!idle) idle = default_idle; preempt_disable(); |