Thread (12 messages) flat view 12 messages, 4 authors, 2011-09-09
STALE5487d

[RFC PATCH v2 3/3] ARM: SoC: convert VExpress/RealView to SoC descriptor

From: Marc Zyngier <hidden>
Date: 2011-09-09 15:20:18

On 09/09/11 15:56, Arnd Bergmann wrote:
On Friday 09 September 2011, Marc Zyngier wrote:
quoted
Convert both Realview and VExpress to use the SoC descriptor to
provide their SMP and CPU hotplug operation.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Marc Zyngier <redacted>
Yes, looks good to me.
quoted
 }
+
+struct arm_soc_desc realview_soc_desc __initdata = {
+       .name           = "ARM RealView Platform",
+#ifdef CONFIG_SMP
+       .smp_ops        = &realview_soc_smp_ops,
+#endif
+};
Do you think we should have a macro for this? Since this is
always the same, we could do something like

#ifdef CONFIG_SMP
#define soc_smp_ops(ops)	.smp_ops = &(ops),
#else
#define soc_smp_ops(ops)	/* empty */
#endif
That would be an improvement indeed. Will queue that for v3.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help