Skip to content

Commit 0eb0379

Browse files
author
Russell King
committed
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. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent d0e2232 commit 0eb0379

File tree

3 files changed

+0
-114
lines changed

3 files changed

+0
-114
lines changed

arch/arm/mach-oxnas/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
2-
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o

arch/arm/mach-oxnas/hotplug.c

Lines changed: 0 additions & 109 deletions
This file was deleted.

arch/arm/mach-oxnas/platsmp.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <asm/smp_scu.h>
2020

2121
extern void ox820_secondary_startup(void);
22-
extern void ox820_cpu_die(unsigned int cpu);
2322

2423
static void __iomem *cpu_ctrl;
2524
static void __iomem *gic_cpu_ctrl;
@@ -94,9 +93,6 @@ static void __init ox820_smp_prepare_cpus(unsigned int max_cpus)
9493
static const struct smp_operations ox820_smp_ops __initconst = {
9594
.smp_prepare_cpus = ox820_smp_prepare_cpus,
9695
.smp_boot_secondary = ox820_boot_secondary,
97-
#ifdef CONFIG_HOTPLUG_CPU
98-
.cpu_die = ox820_cpu_die,
99-
#endif
10096
};
10197

10298
CPU_METHOD_OF_DECLARE(ox820_smp, "oxsemi,ox820-smp", &ox820_smp_ops);

0 commit comments

Comments
 (0)