]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-x86/smp.h
x86: define smp_ops in common header
[linux-2.6-omap-h63xx.git] / include / asm-x86 / smp.h
1 #ifndef _ASM_X86_SMP_H_
2 #define _ASM_X86_SMP_H_
3 #ifndef __ASSEMBLY__
4 #include <linux/cpumask.h>
5
6 extern cpumask_t cpu_callout_map;
7
8 extern int smp_num_siblings;
9 extern unsigned int num_processors;
10
11 struct smp_ops {
12         void (*smp_prepare_boot_cpu)(void);
13         void (*smp_prepare_cpus)(unsigned max_cpus);
14         int (*cpu_up)(unsigned cpu);
15         void (*smp_cpus_done)(unsigned max_cpus);
16
17         void (*smp_send_stop)(void);
18         void (*smp_send_reschedule)(int cpu);
19         int (*smp_call_function_mask)(cpumask_t mask,
20                                       void (*func)(void *info), void *info,
21                                       int wait);
22 };
23
24
25 #ifdef CONFIG_X86_32
26 # include "smp_32.h"
27 #else
28 # include "smp_64.h"
29 #endif
30
31 extern void smp_alloc_memory(void);
32 extern void lock_ipi_call_lock(void);
33 extern void unlock_ipi_call_lock(void);
34 #endif /* __ASSEMBLY__ */
35 #endif