]> err.no Git - linux-2.6/commitdiff
[POWERPC] Fix oprofile support on Cell LPAR
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Fri, 12 Jan 2007 00:56:44 +0000 (09:56 +0900)
committerPaul Mackerras <paulus@samba.org>
Wed, 24 Jan 2007 10:13:59 +0000 (21:13 +1100)
Op_model_cell supports native Cell. By returning -EINVAL, oprofile
uses timer interrupt on Cell LPAR.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/oprofile/common.c

index b6d82390b6a6a8bbf854b04d72135ba91439da97..fbd62eacfdf4264c5620167ce78edc77f157654b 100644 (file)
@@ -149,6 +149,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
 #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