summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_cache.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-09-02 01:41:13 +0200
committerDave Airlie <airlied@linux.ie>2009-09-02 01:41:13 +0200
commited017d9fb17af3162f5acf922eb5731c541e1f3a (patch)
tree39727475df0468c0709d371e5851ceb664b6f822 /drivers/gpu/drm/drm_cache.c
parentdrm/mm: add ability to dump mm lists via debugfs (diff)
downloadlinux-ed017d9fb17af3162f5acf922eb5731c541e1f3a.tar.xz
linux-ed017d9fb17af3162f5acf922eb5731c541e1f3a.zip
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>
Diffstat (limited to 'drivers/gpu/drm/drm_cache.c')
-rw-r--r--drivers/gpu/drm/drm_cache.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c
index 3a5575e638db..0e3bd5b54b78 100644
--- a/drivers/gpu/drm/drm_cache.c
+++ b/drivers/gpu/drm/drm_cache.c
@@ -62,11 +62,8 @@ drm_clflush_ipi_handler(void *null)
{
wbinvd();
}
-#elif !defined(__powerpc__)
-static void drm_cache_ipi_handler(void *dummy)
-{
-}
#endif
+
void
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);
}
#else
- if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0)
- printk(KERN_ERR "Timed out waiting for drm cache flush\n");
+ printk(KERN_ERR "Architecture has no drm_cache.c support\n");
+ WARN_ON_ONCE(1);
#endif
}
EXPORT_SYMBOL(drm_clflush_pages);