提交 e0f0754f 编写于 作者: D Dave Airlie 提交者: Dave Airlie

drm: wbinvd is cache coherent.

doing an ipi for the wbinvd case isn't necessary.
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 e7d22bc3
...@@ -47,12 +47,6 @@ drm_clflush_page(struct page *page) ...@@ -47,12 +47,6 @@ drm_clflush_page(struct page *page)
} }
#endif #endif
static void
drm_clflush_ipi_handler(void *null)
{
wbinvd();
}
void void
drm_clflush_pages(struct page *pages[], unsigned long num_pages) drm_clflush_pages(struct page *pages[], unsigned long num_pages)
{ {
...@@ -68,9 +62,8 @@ 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; return;
} }
#endif
if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0) wbinvd();
DRM_ERROR("Timed out waiting for cache flush.\n"); #endif
} }
EXPORT_SYMBOL(drm_clflush_pages); EXPORT_SYMBOL(drm_clflush_pages);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册