Use pmap_invalidate_cache() to implement wbinvd_on_all_cpus().

Suggested by:	jhb
X-MFC with:	r317651
This commit is contained in:
Mark Johnston 2017-05-05 17:22:00 +00:00
parent e8262ee824
commit 6c10623340

View File

@ -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