]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: remove fake numa support
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 19 Feb 2020 12:29:15 +0000 (13:29 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 27 Feb 2020 15:02:21 +0000 (16:02 +0100)
commitb34e4fb2a583c77c8c8f0fa42ee00d241e6aa6bd
tree1f986fd4e3826553d5d6dce323dc95a756d5ce37
parentad3169f84d59b13cb6ae6e6c93ff173d4c5df819
s390/mm: remove fake numa support

It turned out that fake numa support is rather useless on s390, since
there are no scenarios where there is any performance or other benefit
when used.

However it does provide maintenance cost and breaks from time to time.
Therefore remove it.

CONFIG_NUMA is still supported with a very small backend and only one
node. This way userspace applications which require NUMA interfaces
continue to work.

Note that NODES_SHIFT is set to 1 (= 2 nodes) instead of 0 (= 1 node),
since there is quite a bit of kernel code which assumes that more than
one node is possible if CONFIG_NUMA is enabled.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
12 files changed:
arch/s390/Kconfig
arch/s390/include/asm/numa.h
arch/s390/include/asm/topology.h
arch/s390/kernel/setup.c
arch/s390/kernel/topology.c
arch/s390/numa/Makefile
arch/s390/numa/mode_emu.c [deleted file]
arch/s390/numa/numa.c
arch/s390/numa/numa_mode.h [deleted file]
arch/s390/numa/toptree.c [deleted file]
arch/s390/numa/toptree.h [deleted file]
drivers/s390/char/sclp_cmd.c