summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2020-02-19 13:29:15 +0100
committerVasily Gorbik <gor@linux.ibm.com>2020-02-27 16:02:21 +0100
commit701dc81e7412daaf3c5bf4bc55d35c8b1525112a (patch)
tree1f986fd4e3826553d5d6dce323dc95a756d5ce37 /drivers/s390
parent4a559cd15dbc79958fa9b18ad4e8afe4a0bf4744 (diff)
downloadlinux-701dc81e7412daaf3c5bf4bc55d35c8b1525112a.tar.gz
linux-701dc81e7412daaf3c5bf4bc55d35c8b1525112a.tar.bz2
linux-701dc81e7412daaf3c5bf4bc55d35c8b1525112a.zip
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/char/sclp_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c
index 37d42de06079..a864b21af602 100644
--- a/drivers/s390/char/sclp_cmd.c
+++ b/drivers/s390/char/sclp_cmd.c
@@ -406,7 +406,7 @@ static void __init add_memory_merged(u16 rn)
if (!size)
goto skip_add;
for (addr = start; addr < start + size; addr += block_size)
- add_memory(numa_pfn_to_nid(PFN_DOWN(addr)), addr, block_size);
+ add_memory(0, addr, block_size);
skip_add:
first_rn = rn;
num = 1;