[PATCH] powerpc: hypervisor check in pseries_kexec_cpu_down

Michael Ellerman michael at ellerman.id.au
Tue Feb 7 11:21:13 EST 2006


On Tue, 7 Feb 2006 10:58, Michael Neuling wrote:
> Index: linux-2.6-powerpc/arch/powerpc/platforms/pseries/setup.c
> ===================================================================
> --- linux-2.6-powerpc.orig/arch/powerpc/platforms/pseries/setup.c
> +++ linux-2.6-powerpc/arch/powerpc/platforms/pseries/setup.c
> @@ -585,7 +585,7 @@ static int pSeries_pci_probe_mode(struct
>  static void pseries_kexec_cpu_down(int crash_shutdown, int secondary)
>  {
>  	/* Don't risk a hypervisor call if we're crashing */
> -	if (!crash_shutdown) {
> +	if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) {
>  		unsigned long vpa = __pa(get_lppaca());
>
>  		if (unregister_vpa(hard_smp_processor_id(), vpa)) {

Is SPLPAR the right test? I would have thought LPAR?

cheers

-- 
Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
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: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060207/782a9e55/attachment.pgp 


More information about the Linuxppc64-dev mailing list