mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 15:26:21 +09:00
s390/numa: set node distance to LOCAL_DISTANCE
[ Upstream commit 535e4fc623fab2e09a0653fc3a3e17f382ad0251 ]
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: 3a368f742d
("s390/numa: add core infrastructure")
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
67f8b390b1
commit
a0cfda9cb3
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
void numa_setup(void);
|
void numa_setup(void);
|
||||||
int numa_pfn_to_nid(unsigned long pfn);
|
int numa_pfn_to_nid(unsigned long pfn);
|
||||||
int __node_distance(int a, int b);
|
|
||||||
void numa_update_cpu_topology(void);
|
void numa_update_cpu_topology(void);
|
||||||
|
|
||||||
extern cpumask_t node_to_cpumask_map[MAX_NUMNODES];
|
extern cpumask_t node_to_cpumask_map[MAX_NUMNODES];
|
||||||
|
|
|
@ -83,8 +83,6 @@ static inline const struct cpumask *cpumask_of_node(int node)
|
||||||
|
|
||||||
#define pcibus_to_node(bus) __pcibus_to_node(bus)
|
#define pcibus_to_node(bus) __pcibus_to_node(bus)
|
||||||
|
|
||||||
#define node_distance(a, b) __node_distance(a, b)
|
|
||||||
|
|
||||||
#else /* !CONFIG_NUMA */
|
#else /* !CONFIG_NUMA */
|
||||||
|
|
||||||
#define numa_node_id numa_node_id
|
#define numa_node_id numa_node_id
|
||||||
|
|
|
@ -49,12 +49,6 @@ void numa_update_cpu_topology(void)
|
||||||
mode->update_cpu_topology();
|
mode->update_cpu_topology();
|
||||||
}
|
}
|
||||||
|
|
||||||
int __node_distance(int a, int b)
|
|
||||||
{
|
|
||||||
return mode->distance ? mode->distance(a, b) : 0;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(__node_distance);
|
|
||||||
|
|
||||||
int numa_debug_enabled;
|
int numa_debug_enabled;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user