Skip to content

Commit 6de9292

Browse files
author
Russell King
committed
Merge commit 'smp-hotplug^{/omap2}' into for-linus
2 parents 97b6f89 + 07a496d commit 6de9292

13 files changed

Lines changed: 73 additions & 177 deletions

File tree

‎arch/arm/mach-omap2/omap-smp.c‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ static const struct omap_smp_config omap5_cfg __initconst = {
6969
.startup_addr = omap5_secondary_startup,
7070
};
7171

72-
static DEFINE_SPINLOCK(boot_lock);
73-
7472
void __iomem *omap4_get_scu_base(void)
7573
{
7674
return cfg.scu_base;
@@ -173,12 +171,6 @@ static void omap4_secondary_init(unsigned int cpu)
173171
/* Enable ACR to allow for ICUALLU workaround */
174172
omap5_secondary_harden_predictor();
175173
}
176-
177-
/*
178-
* Synchronise with the boot thread.
179-
*/
180-
spin_lock(&boot_lock);
181-
spin_unlock(&boot_lock);
182174
}
183175

184176
static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
@@ -187,12 +179,6 @@ static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
187179
static bool booted;
188180
static struct powerdomain *cpu1_pwrdm;
189181

190-
/*
191-
* Set synchronisation state between this boot processor
192-
* and the secondary one
193-
*/
194-
spin_lock(&boot_lock);
195-
196182
/*
197183
* Update the AuxCoreBoot0 with boot state for secondary core.
198184
* omap4_secondary_startup() routine will hold the secondary core till
@@ -266,12 +252,6 @@ static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
266252

267253
arch_send_wakeup_ipi_mask(cpumask_of(cpu));
268254

269-
/*
270-
* Now the secondary core is starting up let it run its
271-
* calibrations, then wait for it to finish
272-
*/
273-
spin_unlock(&boot_lock);
274-
275255
return 0;
276256
}
277257

‎arch/arm/mach-realview/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/plat-versatile/inc
55

66
obj-y += realview-dt.o
77
obj-$(CONFIG_SMP) += platsmp-dt.o
8-
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o

‎arch/arm/mach-realview/hotplug.c‎

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

‎arch/arm/mach-realview/hotplug.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎arch/arm/mach-realview/platsmp-dt.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <asm/smp_scu.h>
1818

1919
#include <plat/platsmp.h>
20-
#include "hotplug.h"
2120

2221
#define REALVIEW_SYS_FLAGSSET_OFFSET 0x30
2322

@@ -79,6 +78,13 @@ static void __init realview_smp_prepare_cpus(unsigned int max_cpus)
7978
__pa_symbol(versatile_secondary_startup));
8079
}
8180

81+
#ifdef CONFIG_HOTPLUG_CPU
82+
static void realview_cpu_die(unsigned int cpu)
83+
{
84+
return versatile_immitation_cpu_die(cpu, 0x20);
85+
}
86+
#endif
87+
8288
static const struct smp_operations realview_dt_smp_ops __initconst = {
8389
.smp_prepare_cpus = realview_smp_prepare_cpus,
8490
.smp_secondary_init = versatile_secondary_init,

‎arch/arm/mach-vexpress/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o
1515
CFLAGS_tc2_pm.o += -march=armv7-a
1616
CFLAGS_REMOVE_tc2_pm.o = -pg
1717
obj-$(CONFIG_SMP) += platsmp.o
18-
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
1918

2019
obj-$(CONFIG_ARCH_MPS2) += v2m-mps2.o

‎arch/arm/mach-vexpress/core.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
bool vexpress_smp_init_ops(void);
22

33
extern const struct smp_operations vexpress_smp_dt_ops;
4-
5-
extern void vexpress_cpu_die(unsigned int cpu);

‎arch/arm/mach-vexpress/platsmp.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ static void __init vexpress_smp_dt_prepare_cpus(unsigned int max_cpus)
8282
vexpress_flags_set(__pa_symbol(versatile_secondary_startup));
8383
}
8484

85+
#ifdef CONFIG_HOTPLUG_CPU
86+
static void vexpress_cpu_die(unsigned int cpu)
87+
{
88+
versatile_immitation_cpu_die(cpu, 0x40);
89+
}
90+
#endif
91+
8592
const struct smp_operations vexpress_smp_dt_ops __initconst = {
8693
.smp_prepare_cpus = vexpress_smp_dt_prepare_cpus,
8794
.smp_secondary_init = versatile_secondary_init,

‎arch/arm/plat-versatile/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include
22

33
obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o
44
obj-$(CONFIG_SMP) += headsmp.o platsmp.o
5+
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o

‎arch/arm/plat-versatile/headsmp.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ pen: ldr r7, [r6]
3737

3838
.align
3939
1: .long .
40-
.long pen_release
40+
.long versatile_cpu_release
4141
ENDPROC(versatile_secondary_startup)

0 commit comments

Comments
 (0)