]> git.baikalelectronics.ru Git - kernel.git/commit
s390/numa: pin all possible cpus to nodes early
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 2 Dec 2016 10:12:01 +0000 (11:12 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 7 Dec 2016 06:23:33 +0000 (07:23 +0100)
commit68879b9c83b306153e8704c08ae41411c9b6c6b9
treeeb522e11901927d52f7a670a6b154ff7f904ee4f
parent87e8e33154e81c4411043a60e98aa876045392f1
s390/numa: pin all possible cpus to nodes early

It is required to have an early static cpu to node mapping. This patch
pins all possible cpus to nodes for which no topology information is
present. Since there is no interface available which would allow to
tell where a non-present cpu would appear topology-wise, simply use a
round robin algorithm.
Right now this makes sure that the cpu_to_node() function will return
the same value for a cpu during the life time of the system.

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