[PATCH v4 02/10] ARM: SoC: Add per SoC SMP and CPU hotplug operations
From: nico@fluxnic.net (Nicolas Pitre)
Date: 2011-10-03 19:12:46
On Mon, 3 Oct 2011, Marc Zyngier wrote:
Populate the SoC descriptor structure with the SMP and CPU hotplug operations. To allow the kernel to continue building, the platform hooks are defined as weak symbols which are overrided by the platform code. Once all platforms are converted, the "weak" attribute will be removed and the function made static. Cc: Arnd Bergmann <arnd@arndb.de> Cc: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Marc Zyngier <redacted> ---
[...]
quoted hunk ↗ jump to hunk
--- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c@@ -141,8 +141,12 @@ static const char *cpu_name; static const char *machine_name; static char __initdata cmd_line[COMMAND_LINE_SIZE]; struct machine_desc *machine_desc __initdata; -const struct arm_soc_desc *soc_desc; -static struct arm_soc_desc __soc_desc __read_mostly; +const struct arm_soc_desc *soc_desc __initdata;
Does the above belong in this patch?
+#ifdef CONFIG_SMP +const struct arm_soc_smp_init_ops *soc_smp_init_ops __initdata; +const struct arm_soc_smp_ops *soc_smp_ops __cpuinitdata; +static struct arm_soc_smp_ops __soc_smp_ops __cpuinitdata; +#endif
Maybe those could be moved in smp.c instead. Nicolas