1 #ifndef _ASM_X86_SMP_H_
2 #define _ASM_X86_SMP_H_
4 #include <linux/cpumask.h>
5 #include <linux/init.h>
7 extern cpumask_t cpu_callout_map;
9 extern int smp_num_siblings;
10 extern unsigned int num_processors;
13 void (*smp_prepare_boot_cpu)(void);
14 void (*smp_prepare_cpus)(unsigned max_cpus);
15 int (*cpu_up)(unsigned cpu);
16 void (*smp_cpus_done)(unsigned max_cpus);
18 void (*smp_send_stop)(void);
19 void (*smp_send_reschedule)(int cpu);
20 int (*smp_call_function_mask)(cpumask_t mask,
21 void (*func)(void *info), void *info,
26 extern struct smp_ops smp_ops;
28 static inline void smp_prepare_boot_cpu(void)
30 smp_ops.smp_prepare_boot_cpu();
33 static inline void smp_prepare_cpus(unsigned int max_cpus)
35 smp_ops.smp_prepare_cpus(max_cpus);
38 static inline void smp_cpus_done(unsigned int max_cpus)
40 smp_ops.smp_cpus_done(max_cpus);
43 static inline int __cpu_up(unsigned int cpu)
45 return smp_ops.cpu_up(cpu);
48 static inline void smp_send_reschedule(int cpu)
50 smp_ops.smp_send_reschedule(cpu);
53 static inline int smp_call_function_mask(cpumask_t mask,
54 void (*func) (void *info), void *info,
57 return smp_ops.smp_call_function_mask(mask, func, info, wait);
60 void native_smp_prepare_boot_cpu(void);
61 void native_smp_prepare_cpus(unsigned int max_cpus);
62 void native_smp_cpus_done(unsigned int max_cpus);
63 int native_cpu_up(unsigned int cpunum);
65 extern unsigned disabled_cpus;
74 extern void smp_alloc_memory(void);
75 extern void lock_ipi_call_lock(void);
76 extern void unlock_ipi_call_lock(void);
77 #endif /* __ASSEMBLY__ */