Thread (15 messages) 15 messages, 3 authors, 2006-11-28

[POWERPC 3/9] spufs: we should only execute init_spu_base on cell

From: Arnd Bergmann <arnd@arndb.de>
Date: 2006-11-27 18:18:54
Subsystem: cell broadband engine architecture, linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Michael Ellerman, Linus Torvalds

From: Stephen Rothwell <redacted>

Signed-off-by: Stephen Rothwell <redacted>
Signed-off-by: Arnd Bergmann <redacted>

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

--
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help