hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/include/asm/topology.h
....@@ -36,7 +36,7 @@
3636 cpu_all_mask : \
3737 cpumask_of_node(pcibus_to_node(bus)))
3838
39
-extern int cpu_distance(__be32 *cpu1_assoc, __be32 *cpu2_assoc);
39
+int cpu_relative_distance(__be32 *cpu1_assoc, __be32 *cpu2_assoc);
4040 extern int __node_distance(int, int);
4141 #define node_distance(a, b) __node_distance(a, b)
4242
....@@ -64,6 +64,7 @@
6464 }
6565
6666 int of_drconf_to_nid_single(struct drmem_lmb *lmb);
67
+void update_numa_distance(struct device_node *node);
6768
6869 #else
6970
....@@ -83,7 +84,7 @@
8384
8485 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {}
8586
86
-static inline int cpu_distance(__be32 *cpu1_assoc, __be32 *cpu2_assoc)
87
+static inline int cpu_relative_distance(__be32 *cpu1_assoc, __be32 *cpu2_assoc)
8788 {
8889 return 0;
8990 }
....@@ -93,6 +94,7 @@
9394 return first_online_node;
9495 }
9596
97
+static inline void update_numa_distance(struct device_node *node) {}
9698 #endif /* CONFIG_NUMA */
9799
98100 #if defined(CONFIG_NUMA) && defined(CONFIG_PPC_SPLPAR)