diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2015-09-03 05:57:56 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-10-14 08:31:59 -0400 |
commit | b02064a9b8134e1aac4e891abf72139ca0b126ee (patch) | |
tree | 78850a9ecd07a626cf03a28e72e02e65b4159540 | |
parent | 5b5f1455272e23f4e7889cec37228802d8d01adf (diff) |
s390/numa: write kernel message when emu_size has been increased
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/numa/mode_emu.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/s390/numa/mode_emu.c b/arch/s390/numa/mode_emu.c index 30b2698a28e2..828d0695d0d4 100644 --- a/arch/s390/numa/mode_emu.c +++ b/arch/s390/numa/mode_emu.c | |||
@@ -436,9 +436,15 @@ static void emu_update_cpu_topology(void) | |||
436 | */ | 436 | */ |
437 | static unsigned long emu_setup_size_adjust(unsigned long size) | 437 | static unsigned long emu_setup_size_adjust(unsigned long size) |
438 | { | 438 | { |
439 | unsigned long size_new; | ||
440 | |||
439 | size = size ? : CONFIG_EMU_SIZE; | 441 | size = size ? : CONFIG_EMU_SIZE; |
440 | size = roundup(size, memory_block_size_bytes()); | 442 | size_new = roundup(size, memory_block_size_bytes()); |
441 | return size; | 443 | if (size_new == size) |
444 | return size; | ||
445 | pr_warn("Increasing memory stripe size from %ld MB to %ld MB\n", | ||
446 | size >> 20, size_new >> 20); | ||
447 | return size_new; | ||
442 | } | 448 | } |
443 | 449 | ||
444 | /* | 450 | /* |