[PATCH 12/15] powerpc: Do not use op_model_cell under LPAR

Michael Ellerman michael at ellerman.id.au
Tue Dec 12 15:13:11 EST 2006


On Tue, 2006-12-12 at 13:02 +0900, Ishizaki Kou wrote:
> 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

Is FW_FEATURE_LPAR is the right switch to use here, I'm not sure.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20061212/6e453fba/attachment.pgp>


More information about the Linuxppc-dev mailing list