Skip to content

Commit 535e4fc

Browse files
Alexander Gordeevhcahca
authored andcommitted
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: <[email protected]> # 4.4 Fixes: 3a368f7 ("s390/numa: add core infrastructure") Signed-off-by: Alexander Gordeev <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 75be6b9 commit 535e4fc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/s390/include/asm/topology.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ static inline const struct cpumask *cpumask_of_node(int node)
8686

8787
#define pcibus_to_node(bus) __pcibus_to_node(bus)
8888

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-
9589
#else /* !CONFIG_NUMA */
9690

9791
#define numa_node_id numa_node_id

0 commit comments

Comments
 (0)