summaryrefslogtreecommitdiffstats
path: root/arch/s390/numa
diff options
context:
space:
mode:
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>2015-09-03 11:57:56 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-10-14 14:31:59 +0200
commitb02064a9b8134e1aac4e891abf72139ca0b126ee (patch)
tree78850a9ecd07a626cf03a28e72e02e65b4159540 /arch/s390/numa
parentMerge tag 'nfsd-4.3-2' of git://linux-nfs.org/~bfields/linux (diff)
downloadlinux-b02064a9b8134e1aac4e891abf72139ca0b126ee.tar.xz
linux-b02064a9b8134e1aac4e891abf72139ca0b126ee.zip
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>
Diffstat (limited to 'arch/s390/numa')
-rw-r--r--arch/s390/numa/mode_emu.c10
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)
*/
static unsigned long emu_setup_size_adjust(unsigned long size)
{
+ unsigned long size_new;
+
size = size ? : CONFIG_EMU_SIZE;
- size = roundup(size, memory_block_size_bytes());
- return size;
+ size_new = roundup(size, memory_block_size_bytes());
+ if (size_new == size)
+ return size;
+ pr_warn("Increasing memory stripe size from %ld MB to %ld MB\n",
+ size >> 20, size_new >> 20);
+ return size_new;
}
/*