svn commit: r317839 - head/sys/compat/linuxkpi/common/src
Mark Johnston
markj at FreeBSD.org
Fri May 5 17:22:02 UTC 2017
Author: markj
Date: Fri May 5 17:22:00 2017
New Revision: 317839
URL: https://svnweb.freebsd.org/changeset/base/317839
Log:
Use pmap_invalidate_cache() to implement wbinvd_on_all_cpus().
Suggested by: jhb
X-MFC with: r317651
Modified:
head/sys/compat/linuxkpi/common/src/linux_compat.c
Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_compat.c Fri May 5 17:01:54 2017 (r317838)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c Fri May 5 17:22:00 2017 (r317839)
@@ -1639,18 +1639,12 @@ linux_irq_handler(void *ent)
}
#if defined(__i386__) || defined(__amd64__)
-static void
-wbinvd_cb(void *arg __unused)
-{
-
- wbinvd();
-}
-
int
linux_wbinvd_on_all_cpus(void)
{
- return (linux_on_each_cpu(wbinvd_cb, NULL));
+ pmap_invalidate_cache();
+ return (0);
}
#endif
More information about the svn-src-head
mailing list