From: Olof Johansson Date: Tue, 29 Nov 2005 20:04:17 +0000 (-0600) Subject: [PATCH] powerpc: remove redundant code in stab init X-Git-Tag: v3.12-rc1~39001^2~168^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca507eaf32fa599a92182ce91050046e807a994c;p=kernel%2Fkernel-generic.git [PATCH] powerpc: remove redundant code in stab init 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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/mm/stab.c b/arch/powerpc/mm/stab.c index cfbb4e1..51e7951 100644 --- a/arch/powerpc/mm/stab.c +++ b/arch/powerpc/mm/stab.c @@ -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); }