mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
5b5f145527
commit
b02064a9b8
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue