Commit 64438e1b authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/numa: let NODES_SHIFT depend on NEED_MULTIPLE_NODES

Qian Cai reported:
"""
When NUMA=n and nr_node_ids=2, in apply_wqattrs_prepare(), it has,

for_each_node(node) {
        if (wq_calc_node_cpumask(...

where it will trigger a booting warning,

WARNING: workqueue cpumask: online intersect > possible intersect

because it found 2 nodes and wq_numa_possible_cpumask[1] is an empty
cpumask.
"""

Let NODES_SHIFT depend on NEED_MULTIPLE_NODES like it is done
on other architectures in order to fix this.

Fixes: 701dc81e ("s390/mm: remove fake numa support")
Reported-by: default avatarQian Cai <cai@lca.pw>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 478237a5
...@@ -462,6 +462,7 @@ config NUMA ...@@ -462,6 +462,7 @@ config NUMA
config NODES_SHIFT config NODES_SHIFT
int int
depends on NEED_MULTIPLE_NODES
default "1" default "1"
config SCHED_SMT config SCHED_SMT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment