mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
drm: fix drm_cache.c for arch with no support.
This produces a warn on for architectures where this gets called but we don't have a cache flushing implementation suitable. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
fa8a123855
commit
ed017d9fb1
1 changed files with 3 additions and 6 deletions
|
@ -62,11 +62,8 @@ drm_clflush_ipi_handler(void *null)
|
||||||
{
|
{
|
||||||
wbinvd();
|
wbinvd();
|
||||||
}
|
}
|
||||||
#elif !defined(__powerpc__)
|
|
||||||
static void drm_cache_ipi_handler(void *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
drm_clflush_pages(struct page *pages[], unsigned long num_pages)
|
drm_clflush_pages(struct page *pages[], unsigned long num_pages)
|
||||||
{
|
{
|
||||||
|
@ -95,8 +92,8 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
|
||||||
kunmap_atomic(page_virtual, KM_USER0);
|
kunmap_atomic(page_virtual, KM_USER0);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0)
|
printk(KERN_ERR "Architecture has no drm_cache.c support\n");
|
||||||
printk(KERN_ERR "Timed out waiting for drm cache flush\n");
|
WARN_ON_ONCE(1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(drm_clflush_pages);
|
EXPORT_SYMBOL(drm_clflush_pages);
|
||||||
|
|
Loading…
Reference in a new issue