]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix slice state initialization for Book3E
authorMichael Ellerman <michael@ozlabs.org>
Tue, 12 Apr 2011 19:00:05 +0000 (19:00 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Apr 2011 06:59:20 +0000 (16:59 +1000)
commita49b9326eec8edbe491ed89177d697cab49ad8a3
tree2b562ba93b3c623d032c4808774366e357f21803
parent4a922f8f82be8e27e33453d4aa2245d3899f5648
powerpc/mm: Fix slice state initialization for Book3E

On Book3E, MMU_NO_CONTEXT != 0, but the slice_mm_new_context()
macro assumes that it is.  This means that the map of the
page sizes for each slice is always initialized to zeroes
(which happens to be 4k pages), rather than to the correct
default base page size value - which might be 64k.

This patch corrects the problem.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/page_64.h