Thread (21 messages) flat view 21 messages, 7 authors, 2012-06-12
STALE5169d

[PATCH v7 02/12] ARM: SoC: Add per SoC SMP and CPU hotplug operations

From: Shawn Guo <hidden>
Date: 2012-06-11 03:47:53

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help