Skip to content

Commit

Permalink
powerpc/swsusp_32: Fix TLB invalidation
Browse files Browse the repository at this point in the history
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 <avorontsov@ru.mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Anton Vorontsov authored and Benjamin Herrenschmidt committed Jan 15, 2010
1 parent 9f4f04b commit e443ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/swsusp_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e443ed3

Please sign in to comment.