diff options
author | Ishizaki Kou <kou.ishizaki@toshiba.co.jp> | 2007-01-11 19:56:44 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-01-24 05:13:59 -0500 |
commit | ef66f796751a214dc8fadaef2f068c3baa8969fa (patch) | |
tree | 680474164b1f657d816bf1249f8277fc722b3385 /arch | |
parent | d649bd7b766b9c15c9f5f2f6d8ae0e57303285d0 (diff) |
[POWERPC] Fix oprofile support on Cell LPAR
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/oprofile/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/oprofile/common.c b/arch/powerpc/oprofile/common.c index b6d82390b6a6..fbd62eacfdf4 100644 --- a/arch/powerpc/oprofile/common.c +++ b/arch/powerpc/oprofile/common.c | |||
@@ -149,6 +149,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) | |||
149 | #ifdef CONFIG_PPC64 | 149 | #ifdef CONFIG_PPC64 |
150 | #ifdef CONFIG_PPC_CELL_NATIVE | 150 | #ifdef CONFIG_PPC_CELL_NATIVE |
151 | case PPC_OPROFILE_CELL: | 151 | case PPC_OPROFILE_CELL: |
152 | if (firmware_has_feature(FW_FEATURE_LPAR)) | ||
153 | return -ENODEV; | ||
152 | model = &op_model_cell; | 154 | model = &op_model_cell; |
153 | break; | 155 | break; |
154 | #endif | 156 | #endif |