public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [POWERPC] We should only execute init_spu_base on cell
@ 2006-11-27  6:59 Stephen Rothwell
  2006-11-27 10:29 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2006-11-27  6:59 UTC (permalink / raw)
  To: arnd; +Cc: ppc-dev, paulus


Signed-off-by: Stephen Rothwell <sfr@canb•auug.org.au>
---
 arch/powerpc/platforms/cell/spu_base.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

This is enough to make a combined kernel boot on legacy iSeries.
-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au

diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
index 841ed35..bd7bffc 100644
--- a/arch/powerpc/platforms/cell/spu_base.c
+++ b/arch/powerpc/platforms/cell/spu_base.c
@@ -663,6 +663,9 @@ static int __init init_spu_base(void)
 {
 	int i, ret;
 
+	if (!spu_management_ops)
+		return 0;
+
 	/* create sysdev class for spus */
 	ret = sysdev_class_register(&spu_sysdev_class);
 	if (ret)
-- 
1.4.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [POWERPC] We should only execute init_spu_base on cell
  2006-11-27  6:59 [POWERPC] We should only execute init_spu_base on cell Stephen Rothwell
@ 2006-11-27 10:29 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2006-11-27 10:29 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: ppc-dev, paulus

On Monday 27 November 2006 07:59, Stephen Rothwell wrote:
> 
> Signed-off-by: Stephen Rothwell <sfr@canb•auug.org.au>

Acked-by: Arnd Bergmann <arnd.bergmann@de•ibm.com>

> diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
> index 841ed35..bd7bffc 100644
> --- a/arch/powerpc/platforms/cell/spu_base.c
> +++ b/arch/powerpc/platforms/cell/spu_base.c
> @@ -663,6 +663,9 @@ static int __init init_spu_base(void)
>  {
>  	int i, ret;
>  
> +	if (!spu_management_ops)
> +		return 0;
> +
>  	/* create sysdev class for spus */
>  	ret = sysdev_class_register(&spu_sysdev_class);
>  	if (ret)

Looks good, thanks.

	Arnd <><

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-27 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-27  6:59 [POWERPC] We should only execute init_spu_base on cell Stephen Rothwell
2006-11-27 10:29 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox