forked from luck/tmp_suning_uos_patched
caa759323c
The return value is fixed. Remove it and amend the callers. [ tglx: Fixup arm/bL_switcher and powerpc/rtas ] Signed-off-by: Nadav Amit <namit@vmware.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/20190613064813.8102-2-namit@vmware.com
22 lines
362 B
C
22 lines
362 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/smp.h>
|
|
#include <linux/export.h>
|
|
|
|
static void __wbinvd(void *dummy)
|
|
{
|
|
wbinvd();
|
|
}
|
|
|
|
void wbinvd_on_cpu(int cpu)
|
|
{
|
|
smp_call_function_single(cpu, __wbinvd, NULL, 1);
|
|
}
|
|
EXPORT_SYMBOL(wbinvd_on_cpu);
|
|
|
|
int wbinvd_on_all_cpus(void)
|
|
{
|
|
on_each_cpu(__wbinvd, NULL, 1);
|
|
return 0;
|
|
}
|
|
EXPORT_SYMBOL(wbinvd_on_all_cpus);
|