On Thu, Jun 07, 2012 at 05:09:19PM +0100, Marc Zyngier wrote:
+#ifdef CONFIG_SMP
+#define soc_smp_init_ops(ops) .smp_init_ops = &(ops),
+#define soc_smp_ops(ops) .smp_ops = &(ops),
+#ifdef CONFIG_HOTPLUG_SMP
s/CONFIG_HOTPLUG_SMP/CONFIG_HOTPLUG_CPU
+#define soc_hotplug_ops(prefix) .hotplug_ops = { \
+ .cpu_kill = prefix##_cpu_kill, \
+ .cpu_die = prefix##_cpu_die, \
+ .cpu_disable = prefix##_cpu_disable, \
+ },
+#else
+#define soc_hotplug_ops(prefix) .hotplug_ops = {},
+#endif
+extern void soc_smp_ops_register(struct arm_soc_smp_init_ops *,
+ struct arm_soc_smp_ops *);
+#else
+#define soc_smp_init_ops(ops) /* empty */
+#define soc_smp_ops(ops) /* empty */
+#define soc_smp_ops_register(a,b) do {} while(0)
+#endif
--
Regards,
Shawn