]> git.baikalelectronics.ru Git - kernel.git/commit
s390/numa: only set possible nodes within node_possible_map
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 28 Jul 2016 16:14:29 +0000 (18:14 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 31 Jul 2016 09:28:00 +0000 (05:28 -0400)
commit0d07dc8bcad13085ab4a16474cef6cbf4a697834
treeeedd16f150f0baa440ed2e2db0841081586ed956
parenta88ce6b7d86a2487c5ea4f544b324f19c3fe2106
s390/numa: only set possible nodes within node_possible_map

Make sure that only those nodes appear in the node_possible_map that
may actually be used. Usually that means that the node online and
possible maps are identical. For mode "plain" we only have one node,
for mode "emu" we have "emu_nodes" nodes.

Before this the possible map included (with default config) 16 nodes
while usually only one was used. That made a couple of loops that
iterated over all possible nodes do more work than necessary.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/numa/mode_emu.c
arch/s390/numa/numa.c