[PATCH] powerpc: remove redundant code in stab init
Olof Johansson
olof at lixom.net
Wed Nov 30 07:04:17 EST 2005
Hi,
There's never been a hardware platform that has both pSeries/RPA LPAR
hypervisor and stab (pre-POWER4 segment management). This removes
the redundant code in stab_initalize().
Signed-off-by: Olof Johansson <olof at lixom.net>
Index: 2.6/arch/powerpc/mm/stab.c
===================================================================
--- 2.6.orig/arch/powerpc/mm/stab.c 2005-11-29 13:53:39.000000000 -0600
+++ 2.6/arch/powerpc/mm/stab.c 2005-11-29 13:55:14.000000000 -0600
@@ -288,11 +288,6 @@ void stab_initialize(unsigned long stab)
return;
}
#endif /* CONFIG_PPC_ISERIES */
-#ifdef CONFIG_PPC_PSERIES
- if (platform_is_lpar()) {
- plpar_hcall_norets(H_SET_ASR, stabreal);
- return;
- }
-#endif
+
mtspr(SPRN_ASR, stabreal);
}
More information about the Linuxppc64-dev
mailing list