]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Allow memory hotplug into an offline node
authorReza Arbab <arbab@linux.vnet.ibm.com>
Wed, 16 Nov 2016 16:45:03 +0000 (10:45 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Jan 2017 05:49:36 +0000 (16:49 +1100)
commit34a688fa65a0734a4321e9d7eb9421ffa2accccf
tree9bf897347e6d09c8ae99335d8dbf6c296e28abe9
parent7c209edd4ac078a3265b6a7940517be0c4f1fd87
powerpc/mm: Allow memory hotplug into an offline node

Relax the check preventing us from hotplugging into an offline node.

This limitation was added in commit e50fe0f265de ("[PATCH] powerpc numa:
Support sparse online node map") to prevent adding resources to an
uninitialized node.

These days, there is no harm in doing so. The addition will actually
cause the node to be initialized and onlined; add_memory_resource()
calls hotadd_new_pgdat() (if necessary) and node_set_online().

Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/numa.c