summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/reg_booke.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2014-05-23 01:10:35 +0400
committerScott Wood <scottwood@freescale.com>2014-06-21 03:48:30 +0400
commit1cb4ed92f6a5a8961b122d11e651870ba741245b (patch)
treefef4fb40f49ff85d449410711a6c434a3d35b236 /arch/powerpc/include/asm/reg_booke.h
parentbbd08c72c6b3344a230e15264d6cd444ed76b958 (diff)
downloadlinux-1cb4ed92f6a5a8961b122d11e651870ba741245b.tar.xz
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 <scottwood@freescale.com> Reported-by: Ed Swarthout <ed.swarthout@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/reg_booke.h')
0 files changed, 0 insertions, 0 deletions