cache-smp.c 322 B

1234567891011121314151617181920
  1. #include <linux/smp.h>
  2. #include <linux/export.h>
  3. static void __wbinvd(void *dummy)
  4. {
  5. wbinvd();
  6. }
  7. void wbinvd_on_cpu(int cpu)
  8. {
  9. smp_call_function_single(cpu, __wbinvd, NULL, 1);
  10. }
  11. EXPORT_SYMBOL(wbinvd_on_cpu);
  12. int wbinvd_on_all_cpus(void)
  13. {
  14. return on_each_cpu(__wbinvd, NULL, 1);
  15. }
  16. EXPORT_SYMBOL(wbinvd_on_all_cpus);