]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Split hash page table sizing heuristic into a helper
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 9 Feb 2016 03:32:43 +0000 (13:32 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2016 22:06:16 +0000 (09:06 +1100)
commit108624bd7705119ce6e2f60e0f3b6845b54a4ecd
tree53b8530977350f92bf76ac0373eb7023a18839a3
parentab7f5fe3761231fcf5962d28f2d087ab021f3749
powerpc/mm: Split hash page table sizing heuristic into a helper

htab_get_table_size() either retrieve the size of the hash page table (HPT)
from the device tree - if the HPT size is determined by firmware - or
uses a heuristic to determine a good size based on RAM size if the kernel
is responsible for allocating the HPT.

To support a PAPR extension allowing resizing of the HPT, we're going to
want the memory size -> HPT size logic elsewhere, so split it out into a
helper function.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu-hash64.h
arch/powerpc/mm/hash_utils_64.c