Linux 5.7.6
[linux/fpc-iii.git] / arch / x86 / lib / cache-smp.c
blob7c48ff4ae8d196b651b274dd3a06e1e392e6cee6
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/smp.h>
3 #include <linux/export.h>
5 static void __wbinvd(void *dummy)
7 wbinvd();
10 void wbinvd_on_cpu(int cpu)
12 smp_call_function_single(cpu, __wbinvd, NULL, 1);
14 EXPORT_SYMBOL(wbinvd_on_cpu);
16 int wbinvd_on_all_cpus(void)
18 on_each_cpu(__wbinvd, NULL, 1);
19 return 0;
21 EXPORT_SYMBOL(wbinvd_on_all_cpus);