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>
This commit is contained in:
parent
8feb8e896d
commit
43cc7e86f3
|
@ -79,11 +79,6 @@ static __inline__ int cpu_number_map(int cpu)
|
||||||
return cpu;
|
return cpu;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline__ unsigned int num_booting_cpus(void)
|
|
||||||
{
|
|
||||||
return cpumask_weight(&cpu_callout_map);
|
|
||||||
}
|
|
||||||
|
|
||||||
extern void smp_send_timer(void);
|
extern void smp_send_timer(void);
|
||||||
extern unsigned long send_IPI_mask_phys(const cpumask_t*, int, int);
|
extern unsigned long send_IPI_mask_phys(const cpumask_t*, int, int);
|
||||||
|
|
||||||
|
|
|
@ -169,11 +169,6 @@ void x86_idle_thread_init(unsigned int cpu, struct task_struct *idle);
|
||||||
void smp_store_cpu_info(int id);
|
void smp_store_cpu_info(int id);
|
||||||
#define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu)
|
#define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu)
|
||||||
|
|
||||||
/* We don't mark CPUs online until __cpu_up(), so we need another measure */
|
|
||||||
static inline int num_booting_cpus(void)
|
|
||||||
{
|
|
||||||
return cpumask_weight(cpu_callout_mask);
|
|
||||||
}
|
|
||||||
#else /* !CONFIG_SMP */
|
#else /* !CONFIG_SMP */
|
||||||
#define wbinvd_on_cpu(cpu) wbinvd()
|
#define wbinvd_on_cpu(cpu) wbinvd()
|
||||||
static inline int wbinvd_on_all_cpus(void)
|
static inline int wbinvd_on_all_cpus(void)
|
||||||
|
|
|
@ -177,7 +177,6 @@ static inline int up_smp_call_function(smp_call_func_t func, void *info)
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static inline void smp_send_reschedule(int cpu) { }
|
static inline void smp_send_reschedule(int cpu) { }
|
||||||
#define num_booting_cpus() 1
|
|
||||||
#define smp_prepare_boot_cpu() do {} while (0)
|
#define smp_prepare_boot_cpu() do {} while (0)
|
||||||
#define smp_call_function_many(mask, func, info, wait) \
|
#define smp_call_function_many(mask, func, info, wait) \
|
||||||
(up_smp_call_function(func, info))
|
(up_smp_call_function(func, info))
|
||||||
|
|
Loading…
Reference in New Issue