[PATCH] powerpc/85xx: Update smp support to handle doorbells and non-mpic init

2009-03-11 Thread Kumar Gala
Use device tree to determine if we actually have an MPIC and use CPU feature to decide if we should use doorbells for IPIs. Signed-off-by: Kumar Gala ga...@kernel.crashing.org --- arch/powerpc/platforms/85xx/smp.c | 43 ++--- 1 files changed, 35 insertions(+), 8

Re: [PATCH] powerpc/85xx: Update smp support to handle doorbells and non-mpic init

2009-03-11 Thread Scott Wood
On Wed, Mar 11, 2009 at 06:46:03AM -0500, Kumar Gala wrote: +void __init mpc85xx_smp_init(void) +{ + struct device_node *np; + + smp_85xx_ops.message_pass = NULL; + + np = of_find_node_by_type(NULL, open-pic); We should probably look by compatible rather than device_type. I

Re: [PATCH] powerpc/85xx: Update smp support to handle doorbells and non-mpic init

2009-03-11 Thread Kumar Gala
On Mar 11, 2009, at 10:52 AM, Scott Wood wrote: On Wed, Mar 11, 2009 at 06:46:03AM -0500, Kumar Gala wrote: +void __init mpc85xx_smp_init(void) +{ + struct device_node *np; + + smp_85xx_ops.message_pass = NULL; + + np = of_find_node_by_type(NULL, open-pic); We should