| .. | .. |
|---|
| 36 | 36 | cpu_all_mask : \ |
|---|
| 37 | 37 | cpumask_of_node(pcibus_to_node(bus))) |
|---|
| 38 | 38 | |
|---|
| 39 | | -extern int cpu_distance(__be32 *cpu1_assoc, __be32 *cpu2_assoc); |
|---|
| 39 | +int cpu_relative_distance(__be32 *cpu1_assoc, __be32 *cpu2_assoc); |
|---|
| 40 | 40 | extern int __node_distance(int, int); |
|---|
| 41 | 41 | #define node_distance(a, b) __node_distance(a, b) |
|---|
| 42 | 42 | |
|---|
| .. | .. |
|---|
| 64 | 64 | } |
|---|
| 65 | 65 | |
|---|
| 66 | 66 | int of_drconf_to_nid_single(struct drmem_lmb *lmb); |
|---|
| 67 | +void update_numa_distance(struct device_node *node); |
|---|
| 67 | 68 | |
|---|
| 68 | 69 | #else |
|---|
| 69 | 70 | |
|---|
| .. | .. |
|---|
| 83 | 84 | |
|---|
| 84 | 85 | static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {} |
|---|
| 85 | 86 | |
|---|
| 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) |
|---|
| 87 | 88 | { |
|---|
| 88 | 89 | return 0; |
|---|
| 89 | 90 | } |
|---|
| .. | .. |
|---|
| 93 | 94 | return first_online_node; |
|---|
| 94 | 95 | } |
|---|
| 95 | 96 | |
|---|
| 97 | +static inline void update_numa_distance(struct device_node *node) {} |
|---|
| 96 | 98 | #endif /* CONFIG_NUMA */ |
|---|
| 97 | 99 | |
|---|
| 98 | 100 | #if defined(CONFIG_NUMA) && defined(CONFIG_PPC_SPLPAR) |
|---|