From e0f0754ff6128570dcf38032f5bfb1f195e5bbee Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Oct 2008 13:41:49 +1000 Subject: drm: wbinvd is cache coherent. doing an ipi for the wbinvd case isn't necessary. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_cache.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'drivers/gpu/drm/drm_cache.c') 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); -- cgit v1.2.3-70-g09d2