linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
@ 2006-12-12  4:02 Ishizaki Kou
  2006-12-12  4:13 ` Michael Ellerman
  0 siblings, 1 reply; 7+ messages in thread
From: Ishizaki Kou @ 2006-12-12  4:02 UTC (permalink / raw)
  To: paulus, linuxppc-dev

op_model_cell supports native Cell processor. Under LPAR environment,
it cannot work.

Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
---

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-12-12 22:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12  4:02 [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR Ishizaki Kou
2006-12-12  4:13 ` Michael Ellerman
2006-12-12  4:53   ` Benjamin Herrenschmidt
2006-12-12  4:55     ` Michael Ellerman
2006-12-12 11:49       ` Ishizaki Kou
2006-12-12 19:55   ` Arnd Bergmann
2006-12-12 22:51     ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).