[PATCH 3/19] powerpc: Fix oprofile support on Cell LPAR
Ishizaki Kou
kou.ishizaki at toshiba.co.jp
Fri Jan 12 11:56:44 EST 2007
Op_model_cell supports native Cell. By returning -EINVAL, oprofile
uses timer interrupt on Cell LPAR.
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