[PATCH 3/19] powerpc: Do not use op_model_cell under LPAR
Ishizaki Kou
kou.ishizaki at toshiba.co.jp
Thu Dec 14 13:21:15 EST 2006
op_model_cell supports native Cell processor. Under LPAR environment,
it cannot work.
Signed-off-by: Kou Ishizaki <kou.ishizaki at toshiba.co.jp>
Acked-by: Arnd Bergmann <arnd.bergmann at de.ibm.com>
---
Index: linux-powerpc-git/arch/powerpc/oprofile/common.c
diff -u linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 linux-powerpc-git/arch/powerpc/oprofile/common.c:1.2
--- linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 Wed Dec 6 08:25:43 2006
+++ linux-powerpc-git/arch/powerpc/oprofile/common.c Wed Dec 6 08:43:15 2006
@@ -149,6 +149,8 @@
#ifdef CONFIG_PPC64
#ifdef CONFIG_PPC_CELL_NATIVE
case PPC_OPROFILE_CELL:
+ if (firmware_has_feature(FW_FEATURE_LPAR))
+ return -ENODEV;
model = &op_model_cell;
break;
#endif
More information about the Linuxppc-dev
mailing list