powerpc/mm: Fix broken MMU PID stealing on !SMP
authorHideo Saito <hsaito.ppc@gmail.com>
Sun, 24 May 2009 15:33:34 +0000 (15:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 26 May 2009 03:46:49 +0000 (13:46 +1000)
commit8e35961b57da14cb64cb0e4e1b7e3aabda6396fe
treea3382764e95b0b760e667f43ddd88d7628c746d7
parent59a3759d0fe8d969888c741bb33f4946e4d3750d
powerpc/mm: Fix broken MMU PID stealing on !SMP

The recent rework of the MMU PID handling for non-hash CPUs has a
subtle bug in the !SMP "optimized" variant of the PID stealing
function.  It clears the PID in the mm context before it calls
local_flush_tlb_mm(). However, the later will not flush anything
if the PID in the context is clear...

Signed-off-by: Hideo Saito <hsaito.ppc@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/mmu_context_nohash.c