s390/numa: write kernel message when emu_size has been increased
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Thu, 3 Sep 2015 09:57:56 +0000 (11:57 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:31:59 +0000 (14:31 +0200)
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/numa/mode_emu.c

index 30b2698a28e29a6991a7116da1877e5bdee1963e..828d0695d0d4a703e22164bc2b6576c18bc4032a 100644 (file)
@@ -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;
 }
 
 /*