Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/numa: set node distance to LOCAL_DISTANCE

The node distance is hardcoded to 0, which causes a trouble
for some user-level applications. In particular, "libnuma"
expects the distance of a node to itself as LOCAL_DISTANCE.
This update removes the offending node distance override.

Cc: <stable@vger.kernel.org> # 4.4
Fixes: 3a368f742da1 ("s390/numa: add core infrastructure")
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

authored by

Alexander Gordeev and committed by
Heiko Carstens
535e4fc6 75be6b98

-6
-6
arch/s390/include/asm/topology.h
··· 86 86 87 87 #define pcibus_to_node(bus) __pcibus_to_node(bus) 88 88 89 - #define node_distance(a, b) __node_distance(a, b) 90 - static inline int __node_distance(int a, int b) 91 - { 92 - return 0; 93 - } 94 - 95 89 #else /* !CONFIG_NUMA */ 96 90 97 91 #define numa_node_id numa_node_id