From: Scott Wood Date: Thu, 22 May 2014 21:10:35 +0000 (-0500) Subject: powerpc/e6500: hw tablewalk: fix recursive tlb lock on cpu 0 X-Git-Tag: omap-for-v3.17/fixes-against-rc2~134^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cb4ed92f6a5a8961b122d11e651870ba741245b;p=pandora-kernel.git powerpc/e6500: hw tablewalk: fix recursive tlb lock on cpu 0 Commit 82d86de25b9c99db546e17c6f7ebf9a691da557e "TLB lock recursive" introduced a bug whereby cpu 0 uses the same value for "lock held" as is used to indicate that the lock is free. This means that cpu 1 can acquire the lock whenever it wants, regardless of whether cpu 0 has it locked, which in turn means we can get duplicate TLB entries. Add one to the CPU value to ensure we do not use zero as a "lock held" value. Signed-off-by: Scott Wood Reported-by: Ed Swarthout --- Reading git-diff-tree failed