diff options
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/smp.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/topology.h | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/arch/powerpc/include/asm/smp.h b/arch/powerpc/include/asm/smp.h index c0d3b8af9319..d9ea8d39c342 100644 --- a/arch/powerpc/include/asm/smp.h +++ b/arch/powerpc/include/asm/smp.h | |||
@@ -146,7 +146,7 @@ extern void smp_generic_take_timebase(void); | |||
146 | extern struct smp_ops_t *smp_ops; | 146 | extern struct smp_ops_t *smp_ops; |
147 | 147 | ||
148 | extern void arch_send_call_function_single_ipi(int cpu); | 148 | extern void arch_send_call_function_single_ipi(int cpu); |
149 | extern void arch_send_call_function_ipi(cpumask_t mask); | 149 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); |
150 | 150 | ||
151 | /* Definitions relative to the secondary CPU spin loop | 151 | /* Definitions relative to the secondary CPU spin loop |
152 | * and entry point. Not all of them exist on both 32 and | 152 | * and entry point. Not all of them exist on both 32 and |
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index 394edcbcce71..22f738d12ad9 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h | |||
@@ -17,11 +17,6 @@ static inline int cpu_to_node(int cpu) | |||
17 | 17 | ||
18 | #define parent_node(node) (node) | 18 | #define parent_node(node) (node) |
19 | 19 | ||
20 | static inline cpumask_t node_to_cpumask(int node) | ||
21 | { | ||
22 | return numa_cpumask_lookup_table[node]; | ||
23 | } | ||
24 | |||
25 | #define cpumask_of_node(node) (&numa_cpumask_lookup_table[node]) | 20 | #define cpumask_of_node(node) (&numa_cpumask_lookup_table[node]) |
26 | 21 | ||
27 | int of_node_to_nid(struct device_node *device); | 22 | int of_node_to_nid(struct device_node *device); |
@@ -36,11 +31,6 @@ static inline int pcibus_to_node(struct pci_bus *bus) | |||
36 | } | 31 | } |
37 | #endif | 32 | #endif |
38 | 33 | ||
39 | #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ | ||
40 | CPU_MASK_ALL : \ | ||
41 | node_to_cpumask(pcibus_to_node(bus)) \ | ||
42 | ) | ||
43 | |||
44 | #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ | 34 | #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ |
45 | cpu_all_mask : \ | 35 | cpu_all_mask : \ |
46 | cpumask_of_node(pcibus_to_node(bus))) | 36 | cpumask_of_node(pcibus_to_node(bus))) |
@@ -104,8 +94,6 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev, | |||
104 | #ifdef CONFIG_PPC64 | 94 | #ifdef CONFIG_PPC64 |
105 | #include <asm/smp.h> | 95 | #include <asm/smp.h> |
106 | 96 | ||
107 | #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu)) | ||
108 | #define topology_core_siblings(cpu) (per_cpu(cpu_core_map, cpu)) | ||
109 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) | 97 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) |
110 | #define topology_core_cpumask(cpu) (&per_cpu(cpu_core_map, cpu)) | 98 | #define topology_core_cpumask(cpu) (&per_cpu(cpu_core_map, cpu)) |
111 | #define topology_core_id(cpu) (cpu_to_core_id(cpu)) | 99 | #define topology_core_id(cpu) (cpu_to_core_id(cpu)) |