aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-10-07 13:41:49 +1000
committerDave Airlie <airlied@linux.ie>2008-10-18 07:10:53 +1000
commite0f0754ff6128570dcf38032f5bfb1f195e5bbee (patch)
treeb0d51d92ff9fa01868cd7f00cae458adbcfd60d1 /drivers/gpu
parente7d22bc3cb57126196c4f475d4e55aa44e151784 (diff)
downloadkernel_samsung_tuna-e0f0754ff6128570dcf38032f5bfb1f195e5bbee.zip
kernel_samsung_tuna-e0f0754ff6128570dcf38032f5bfb1f195e5bbee.tar.gz
kernel_samsung_tuna-e0f0754ff6128570dcf38032f5bfb1f195e5bbee.tar.bz2
drm: wbinvd is cache coherent.
doing an ipi for the wbinvd case isn't necessary. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/drm_cache.c11
1 files changed, 2 insertions, 9 deletions
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 @@ 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);