ARM: oxnas: remove CPU hotplug implementation
Subsystems (3)
PATCH 3/5 ARM: oxnas: remove CPU hotplug implementation
The CPU hotplug implementation on this platform is cargo-culted from the plat-versatile implementation, and is buggy. Once a CPU hits the "low power" loop, it will wait for pen_release to be set to the CPU number to wake up again - but nothing in this implementation does that.
So, once a CPU has entered cpu_die() it will never, ever leave.
Remove this useless cargo-culted implementation.
--- arch/arm/mach-oxnas/Makefile | 1 - arch/arm/mach-oxnas/hotplug.c | 109 ------------------------------------------ arch/arm/mach-oxnas/platsmp.c | 4 -- 3 files changed, 114 deletions(-) delete mode 100644 arch/arm/mach-oxnas/hotplug.c
arch/arm/mach-oxnas/Makefile +0 -1
@@ -1,2 +1 @@ obj-$(CONFIG_SMP) += platsmp.o headsmp.o -obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
arch/arm/mach-oxnas/hotplug.c deleted +0 -109
109 lines not on this page · raw message
arch/arm/mach-oxnas/platsmp.c +0 -4
@@ -19,7 +19,6 @@#include <asm/smp_scu.h> extern void ox820_secondary_startup (void ); -extern void ox820_cpu_die (unsigned int cpu);static void __iomem *cpu_ctrl;static void __iomem *gic_cpu_ctrl;
@@ -94,9 +93,6 @@ static void __init ox820_smp_prepare_cpus(unsigned int max_cpus)static const struct smp_operations ox820_smp_ops__initconst = { .smp_prepare_cpus = ox820_smp_prepare_cpus, .smp_boot_secondary = ox820_boot_secondary, -#ifdef CONFIG_HOTPLUG_CPU - .cpu_die = ox820_cpu_die, -#endif };CPU_METHOD_OF_DECLARE (ox820_smp,"oxsemi,ox820-smp" , &ox820_smp_ops);
Signature · 1 line
2.7.4
Quoted 6 lines · Russell King
The CPU hotplug implementation on this platform is cargo-culted from the plat-versatile implementation, and is buggy. Once a CPU hits the "low power" loop, it will wait for
pen_releaseto be set to the CPU number to wake up again - but nothing in this implementation does that.So, once a CPU has entered
cpu_die()it will never, ever leave.
It's a bit like Hotel California?
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Russell King - ARM Linux
maintainerQuoted 10 lines · Marc Gonzalez
Quoted 6 lines · Russell King
The CPU hotplug implementation on this platform is cargo-culted from the plat-versatile implementation, and is buggy. Once a CPU hits the "low power" loop, it will wait for
pen_releaseto be set to the CPU number to wake up again - but nothing in this implementation does that.So, once a CPU has entered
cpu_die()it will never, ever leave.It's a bit like Hotel California?
Are you suggesting I should've renamed it to hotel_california.c ? ;)
Signature · 8 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel