mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
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
This commit is contained in:
@@ -81,6 +81,8 @@ void __smp_call_function_single(int cpuid, struct call_single_data *data,
|
||||
int smp_call_function_any(const struct cpumask *mask,
|
||||
smp_call_func_t func, void *info, int wait);
|
||||
|
||||
void kick_all_cpus_sync(void);
|
||||
|
||||
/*
|
||||
* Generic and arch helpers
|
||||
*/
|
||||
@@ -192,6 +194,8 @@ smp_call_function_any(const struct cpumask *mask, smp_call_func_t func,
|
||||
return smp_call_function_single(0, func, info, wait);
|
||||
}
|
||||
|
||||
static inline void kick_all_cpus_sync(void) { }
|
||||
|
||||
#endif /* !SMP */
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user