ARM: shmobile: Introduce shmobile_smp_cpu_disable()
authorMagnus Damm <damm@opensource.se>
Wed, 7 Aug 2013 22:13:30 +0000 (07:13 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 21 Sep 2013 00:47:30 +0000 (17:47 -0700)
Introduce the shared CPU Hotplug function shmobile_smp_cpu_disable()
for mach-shmobile. It is useful for the case when all CPUs may be
hotplugged, including CPU 0.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/include/mach/common.h
arch/arm/mach-shmobile/platsmp.c

index 7b938681e7569d29231b232d2be8f46d81f6be39..1ed155eb3e927ec2e968f3dbdcd1b425cc3998e5 100644 (file)
@@ -13,6 +13,7 @@ extern void shmobile_smp_boot(void);
 extern void shmobile_smp_sleep(void);
 extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
                              unsigned long arg);
+extern int shmobile_smp_cpu_disable(unsigned int cpu);
 extern void shmobile_boot_scu(void);
 extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
 extern int shmobile_smp_scu_boot_secondary(unsigned int cpu,
index d4ae616bcedb4f09c4342a8e19a0d9c7dc98f581..3741562156edcf10b47567b38d2267d49b0e2cf0 100644 (file)
@@ -44,3 +44,10 @@ void shmobile_smp_hook(unsigned int cpu, unsigned long fn, unsigned long arg)
        shmobile_smp_arg[cpu] = arg;
        flush_cache_all();
 }
+
+#ifdef CONFIG_HOTPLUG_CPU
+int shmobile_smp_cpu_disable(unsigned int cpu)
+{
+       return 0; /* Hotplug of any CPU is supported */
+}
+#endif
This page took 0.034637 seconds and 5 git commands to generate.