diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-07 13:59:48 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-08 06:35:06 -0400 |
| commit | f37f435f33717dcf15fd4bb422da739da7fc2052 (patch) | |
| tree | aca7b5707758ef33158116acbbdd41b8ab6c2fb4 /include/linux | |
| parent | 9cd75e13de2dcf32ecc21c7f277cff3c0ced059e (diff) | |
smp: Implement kick_all_cpus_sync()
Will replace the misnomed cpu_idle_wait() function which is copied a
gazillion times all over arch/*
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20120507175652.049316594@linutronix.de
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/smp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 24360de6c968..717fb746c9a8 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h | |||
| @@ -81,6 +81,8 @@ void __smp_call_function_single(int cpuid, struct call_single_data *data, | |||
| 81 | int smp_call_function_any(const struct cpumask *mask, | 81 | int smp_call_function_any(const struct cpumask *mask, |
| 82 | smp_call_func_t func, void *info, int wait); | 82 | smp_call_func_t func, void *info, int wait); |
| 83 | 83 | ||
| 84 | void kick_all_cpus_sync(void); | ||
| 85 | |||
| 84 | /* | 86 | /* |
| 85 | * Generic and arch helpers | 87 | * Generic and arch helpers |
| 86 | */ | 88 | */ |
| @@ -192,6 +194,8 @@ smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, | |||
| 192 | return smp_call_function_single(0, func, info, wait); | 194 | return smp_call_function_single(0, func, info, wait); |
| 193 | } | 195 | } |
| 194 | 196 | ||
| 197 | static inline void kick_all_cpus_sync(void) { } | ||
| 198 | |||
| 195 | #endif /* !SMP */ | 199 | #endif /* !SMP */ |
| 196 | 200 | ||
| 197 | /* | 201 | /* |
