From: Benjamin Herrenschmidt Date: Thu, 12 Apr 2007 05:30:21 +0000 (+1000) Subject: [POWERPC] Cleanup 32-bit map_page X-Git-Tag: v2.6.22-rc1~1109^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3be4e6990edf65624cfcbf8f7e33810626b2eefa;p=pandora-kernel.git [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 arch/powerpc/mm/pgtable_32.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed