From: Dave Airlie Date: Tue, 7 Oct 2008 03:41:49 +0000 (+1000) Subject: drm: wbinvd is cache coherent. X-Git-Tag: v2.6.28-rc1~255^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e0f0754ff6128570dcf38032f5bfb1f195e5bbee;p=linux-2.6-omap-h63xx.git drm: wbinvd is cache coherent. doing an ipi for the wbinvd case isn't necessary. Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c index 9475f7d9901..0e994a0e46d 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);