mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
drm: wbinvd is cache coherent.
doing an ipi for the wbinvd case isn't necessary. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
e7d22bc3cb
commit
e0f0754ff6
1 changed files with 2 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue