diff options
Diffstat (limited to 'include/linux/smp.h')
-rw-r--r-- | include/linux/smp.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 715196b09d67..a69db820eed6 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h | |||
@@ -38,7 +38,7 @@ int smp_call_function_single(int cpuid, void (*func) (void *info), void *info, | |||
38 | /* | 38 | /* |
39 | * main cross-CPU interfaces, handles INIT, TLB flush, STOP, etc. | 39 | * main cross-CPU interfaces, handles INIT, TLB flush, STOP, etc. |
40 | * (defined in asm header): | 40 | * (defined in asm header): |
41 | */ | 41 | */ |
42 | 42 | ||
43 | /* | 43 | /* |
44 | * stops all CPUs but the current one: | 44 | * stops all CPUs but the current one: |
@@ -82,7 +82,8 @@ smp_call_function_mask(cpumask_t mask, void(*func)(void *info), void *info, | |||
82 | return 0; | 82 | return 0; |
83 | } | 83 | } |
84 | 84 | ||
85 | void __smp_call_function_single(int cpuid, struct call_single_data *data); | 85 | void __smp_call_function_single(int cpuid, struct call_single_data *data, |
86 | int wait); | ||
86 | 87 | ||
87 | /* | 88 | /* |
88 | * Generic and arch helpers | 89 | * Generic and arch helpers |
@@ -121,6 +122,8 @@ extern unsigned int setup_max_cpus; | |||
121 | 122 | ||
122 | #else /* !SMP */ | 123 | #else /* !SMP */ |
123 | 124 | ||
125 | static inline void smp_send_stop(void) { } | ||
126 | |||
124 | /* | 127 | /* |
125 | * These macros fold the SMP functionality into a single CPU system | 128 | * These macros fold the SMP functionality into a single CPU system |
126 | */ | 129 | */ |
@@ -176,6 +179,12 @@ static inline void init_call_single_data(void) | |||
176 | #define put_cpu() preempt_enable() | 179 | #define put_cpu() preempt_enable() |
177 | #define put_cpu_no_resched() preempt_enable_no_resched() | 180 | #define put_cpu_no_resched() preempt_enable_no_resched() |
178 | 181 | ||
182 | /* | ||
183 | * Callback to arch code if there's nosmp or maxcpus=0 on the | ||
184 | * boot command line: | ||
185 | */ | ||
186 | extern void arch_disable_smp_support(void); | ||
187 | |||
179 | void smp_setup_processor_id(void); | 188 | void smp_setup_processor_id(void); |
180 | 189 | ||
181 | #endif /* __LINUX_SMP_H */ | 190 | #endif /* __LINUX_SMP_H */ |