Skip to content

Commit

Permalink
drm: wbinvd is cache coherent.
Browse files Browse the repository at this point in the history
doing an ipi for the wbinvd case isn't necessary.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Oct 17, 2008
1 parent e7d22bc commit e0f0754
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions drivers/gpu/drm/drm_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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);

0 comments on commit e0f0754

Please sign in to comment.