]> 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)
commit212cc8e7494841c1c1b46426499a3e6a68cd9e0d
tree2b562ba93b3c623d032c4808774366e357f21803
parent8e5abde4b09cb389173aca442ec5b2ef716b7e37
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