Sfoglia il codice sorgente

drm: wbinvd is cache coherent.

doing an ipi for the wbinvd case isn't necessary.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Dave Airlie 16 anni fa
parent
commit
e0f0754ff6
1 ha cambiato i file con 2 aggiunte e 9 eliminazioni
  1. 2 9
      drivers/gpu/drm/drm_cache.c

+ 2 - 9
drivers/gpu/drm/drm_cache.c

@@ -47,12 +47,6 @@ drm_clflush_page(struct page *page)
 }
 #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 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
 
 		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);