powerpc: Fix CONFIG_DEBUG_PAGEALLOC on 603/e300
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 27 Apr 2010 21:22:55 +0000 (21:22 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 May 2010 06:49:26 +0000 (16:49 +1000)
commit75c1d539ea13117cbe95e2c343e52af67d735145
treef45295016163b1e1914dc1f48c307e64215f5f2c
parentaef40e87d866355ffd279ab21021de733242d0d5
powerpc: Fix CONFIG_DEBUG_PAGEALLOC on 603/e300

So we tried to speed things up a bit using flush_hash_pages() directly
but that falls over on 603 of course meaning we fail to flush the TLB
properly and we may even end up having it corrupt memory randomly by
accessing a hash table that doesn't exist.

This removes the "optimization" by always going through flush_tlb_page()
for now at least.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/pgtable_32.c