drm: wbinvd is cache coherent.
doing an ipi for the wbinvd case isn't necessary.
Signed-off-by: Dave Airlie <airlied@redhat.com>
diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c
index 9475f7d..0e994a0 100644
--- a/drivers/gpu/drm/drm_cache.c
+++ b/drivers/gpu/drm/drm_cache.c
@@ -47,12 +47,6 @@
}
#endif
-static void
-drm_clflush_ipi_handler(void *null)
-{
- wbinvd();
-}
-
void
drm_clflush_pages(struct page *pages[], unsigned long num_pages)
{
@@ -68,9 +62,8 @@
return;
}
-#endif
- if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0)
- DRM_ERROR("Timed out waiting for cache flush.\n");
+ wbinvd();
+#endif
}
EXPORT_SYMBOL(drm_clflush_pages);