Commit 43cc7e86f3200b094e2960b732623aeec00b482d
1 parent
8feb8e896d
smp: Remove num_booting_cpus()
No users. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Cc: Rusty Russell <rusty@rustcorp.com.au>
Showing 3 changed files with 0 additions and 11 deletions Side-by-side Diff
arch/m32r/include/asm/smp.h
... | ... | @@ -79,11 +79,6 @@ |
79 | 79 | return cpu; |
80 | 80 | } |
81 | 81 | |
82 | -static __inline__ unsigned int num_booting_cpus(void) | |
83 | -{ | |
84 | - return cpumask_weight(&cpu_callout_map); | |
85 | -} | |
86 | - | |
87 | 82 | extern void smp_send_timer(void); |
88 | 83 | extern unsigned long send_IPI_mask_phys(const cpumask_t*, int, int); |
89 | 84 |
arch/x86/include/asm/smp.h
... | ... | @@ -169,11 +169,6 @@ |
169 | 169 | void smp_store_cpu_info(int id); |
170 | 170 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) |
171 | 171 | |
172 | -/* We don't mark CPUs online until __cpu_up(), so we need another measure */ | |
173 | -static inline int num_booting_cpus(void) | |
174 | -{ | |
175 | - return cpumask_weight(cpu_callout_mask); | |
176 | -} | |
177 | 172 | #else /* !CONFIG_SMP */ |
178 | 173 | #define wbinvd_on_cpu(cpu) wbinvd() |
179 | 174 | static inline int wbinvd_on_all_cpus(void) |
include/linux/smp.h
... | ... | @@ -177,7 +177,6 @@ |
177 | 177 | } while (0) |
178 | 178 | |
179 | 179 | static inline void smp_send_reschedule(int cpu) { } |
180 | -#define num_booting_cpus() 1 | |
181 | 180 | #define smp_prepare_boot_cpu() do {} while (0) |
182 | 181 | #define smp_call_function_many(mask, func, info, wait) \ |
183 | 182 | (up_smp_call_function(func, info)) |