diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-03 12:12:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:52 -0400 |
commit | 16694024d6d6fa84dfcf5400b53afe1e75cebf0d (patch) | |
tree | b395c835a175854f20e062196f9ea3fb51e43bab /include/asm-x86/smp.h | |
parent | 53ebef4961c7d5347b4fa2b878258ccd11fc9663 (diff) |
x86: define smp_ops in common header
x86_64 will benefit from it
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/smp.h')
-rw-r--r-- | include/asm-x86/smp.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index c130a87c956d..d11b92b56353 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -8,6 +8,20 @@ extern cpumask_t cpu_callout_map; | |||
8 | extern int smp_num_siblings; | 8 | extern int smp_num_siblings; |
9 | extern unsigned int num_processors; | 9 | extern unsigned int num_processors; |
10 | 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 | |||
11 | #ifdef CONFIG_X86_32 | 25 | #ifdef CONFIG_X86_32 |
12 | # include "smp_32.h" | 26 | # include "smp_32.h" |
13 | #else | 27 | #else |