Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2017 17:22:01 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317839 - head/sys/compat/linuxkpi/common/src
Message-ID:  <201705051722.v45HM1wg067023@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705051722.v45HM1wg067023>