[PATCH] powerpc: hypervisor check in pseries_kexec_cpu_down

Michael Neuling mikey at neuling.org
Tue Feb 7 10:58:21 EST 2006


Paulus,

We call unregister_vpa but we don't check to see if the hypervisor
supports this.

Please apply.

Signed-off-by: Michael Neuling <mikey at neuling.org>
Acked-by: Anton Blanchard <anton at samba.org>
--
 arch/powerpc/platforms/pseries/setup.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

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)) {



More information about the Linuxppc64-dev mailing list