diff options
-rw-r--r-- | arch/s390/mm/init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 0b09b2342302..89ebae4008f2 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/pagemap.h> | 22 | #include <linux/pagemap.h> |
23 | #include <linux/bootmem.h> | 23 | #include <linux/bootmem.h> |
24 | #include <linux/memory.h> | ||
24 | #include <linux/pfn.h> | 25 | #include <linux/pfn.h> |
25 | #include <linux/poison.h> | 26 | #include <linux/poison.h> |
26 | #include <linux/initrd.h> | 27 | #include <linux/initrd.h> |
@@ -36,6 +37,7 @@ | |||
36 | #include <asm/tlbflush.h> | 37 | #include <asm/tlbflush.h> |
37 | #include <asm/sections.h> | 38 | #include <asm/sections.h> |
38 | #include <asm/ctl_reg.h> | 39 | #include <asm/ctl_reg.h> |
40 | #include <asm/sclp.h> | ||
39 | 41 | ||
40 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__((__aligned__(PAGE_SIZE))); | 42 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__((__aligned__(PAGE_SIZE))); |
41 | 43 | ||
@@ -214,6 +216,15 @@ int arch_add_memory(int nid, u64 start, u64 size) | |||
214 | return rc; | 216 | return rc; |
215 | } | 217 | } |
216 | 218 | ||
219 | unsigned long memory_block_size_bytes(void) | ||
220 | { | ||
221 | /* | ||
222 | * Make sure the memory block size is always greater | ||
223 | * or equal than the memory increment size. | ||
224 | */ | ||
225 | return max_t(unsigned long, MIN_MEMORY_BLOCK_SIZE, sclp_get_rzm()); | ||
226 | } | ||
227 | |||
217 | #ifdef CONFIG_MEMORY_HOTREMOVE | 228 | #ifdef CONFIG_MEMORY_HOTREMOVE |
218 | int arch_remove_memory(u64 start, u64 size) | 229 | int arch_remove_memory(u64 start, u64 size) |
219 | { | 230 | { |