From: Anton Vorontsov Date: Wed, 30 Dec 2009 07:40:17 +0000 (+0000) Subject: powerpc/swsusp_32: Fix TLB invalidation X-Git-Tag: accepted/tizen/common/20141203.182822~12959^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e443ed35606cf921cbf9d6949010a5b36bbe747d;p=platform%2Fkernel%2Flinux-arm64.git powerpc/swsusp_32: Fix TLB invalidation It seems there is a thinko in the TLB invalidation code that makes the tlbie in the loop executed just once. The intended check was probably 'gt', not 'lt'. Signed-off-by: Anton Vorontsov Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/swsusp_32.S b/arch/powerpc/kernel/swsusp_32.S index b47d8ce..b0754e2 100644 --- a/arch/powerpc/kernel/swsusp_32.S +++ b/arch/powerpc/kernel/swsusp_32.S @@ -303,7 +303,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_USE_HIGH_BATS) lis r4,0x1000 1: addic. r4,r4,-0x1000 tlbie r4 - blt 1b + bgt 1b sync /* restore the MSR and turn on the MMU */