]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[POWERPC] Cleanup 32-bit map_page
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 12 Apr 2007 05:30:21 +0000 (15:30 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 12 Apr 2007 18:09:39 +0000 (04:09 +1000)
commit3be4e6990edf65624cfcbf8f7e33810626b2eefa
treee0da9d35af9cd7779ec1c437ebd661892d586689
parenta741e67969577163a4cfc78d7fd2753219087ef1
[POWERPC] Cleanup 32-bit map_page

The 32 bits map_page() function is used internally by the mm code
for early mmu mappings and for ioremap. It should never be called
for an address that already has a valid PTE or hash entry, so we
add a BUG_ON for that and remove the useless flush_HPTE call.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
 arch/powerpc/mm/pgtable_32.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/pgtable_32.c