提交 ef66f796 编写于 作者: I Ishizaki Kou 提交者: Paul Mackerras

[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: NKou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 d649bd7b
...@@ -149,6 +149,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) ...@@ -149,6 +149,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
#ifdef CONFIG_PPC_CELL_NATIVE #ifdef CONFIG_PPC_CELL_NATIVE
case PPC_OPROFILE_CELL: case PPC_OPROFILE_CELL:
if (firmware_has_feature(FW_FEATURE_LPAR))
return -ENODEV;
model = &op_model_cell; model = &op_model_cell;
break; break;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册