]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix booke hugetlb preload code for PPC_MM_SLICES and 64-bit
authorBecky Bruce <beckyb@kernel.crashing.org>
Mon, 10 Oct 2011 10:50:38 +0000 (10:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Dec 2011 05:26:21 +0000 (16:26 +1100)
commitf987fa38a4a313e2cd4763a6e99cf6ba5d172f58
treec4d5209abc4d783cb0b4f20b1a17f6cca8f85f87
parentf52712eaed47ebb8f947870cc638918610a6edff
powerpc: Fix booke hugetlb preload code for PPC_MM_SLICES and 64-bit

This patch does 2 things: It corrects the code that determines the
size to write into MAS1 for the PPC_MM_SLICES case (this originally
came from David Gibson and I had incorrectly altered it), and it
changes the methodolody used to calculate the size for !PPC_MM_SLICES
to work for 64-bit as well as 32-bit.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hugetlbpage-book3e.c