diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-12-09 01:07:38 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-02-10 03:28:02 +0100 |
commit | 438cc81a41e8c2905d0f4f300d4690445b2ab240 (patch) | |
tree | 61938f2ed23ea50783e87c1c13c39dc4c2ec261f /arch/powerpc/include/asm/sparsemem.h | |
parent | powerpc/pseries: Advertise HPT resizing support via CAS (diff) | |
download | linux-438cc81a41e8c2905d0f4f300d4690445b2ab240.tar.xz linux-438cc81a41e8c2905d0f4f300d4690445b2ab240.zip |
powerpc/pseries: Automatically resize HPT for memory hot add/remove
We've now implemented code in the pseries platform to use the new PAPR
interface to allow resizing the hash page table (HPT) at runtime.
This patch uses that interface to automatically attempt to resize the HPT
when memory is hot added or removed. This tries to always keep the HPT at
a reasonable size for our current memory size.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/sparsemem.h')
-rw-r--r-- | arch/powerpc/include/asm/sparsemem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/sparsemem.h b/arch/powerpc/include/asm/sparsemem.h index f6fc0ee813d7..737335c891e4 100644 --- a/arch/powerpc/include/asm/sparsemem.h +++ b/arch/powerpc/include/asm/sparsemem.h @@ -16,6 +16,7 @@ #endif /* CONFIG_SPARSEMEM */ #ifdef CONFIG_MEMORY_HOTPLUG +extern void resize_hpt_for_hotplug(unsigned long new_mem_size); extern int create_section_mapping(unsigned long start, unsigned long end); extern int remove_section_mapping(unsigned long start, unsigned long end); #ifdef CONFIG_NUMA |