diff options
author | Dave Airlie <airlied@linux.ie> | 2009-09-01 19:41:13 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-09-01 19:41:13 -0400 |
commit | ed017d9fb17af3162f5acf922eb5731c541e1f3a (patch) | |
tree | 39727475df0468c0709d371e5851ceb664b6f822 /drivers/gpu | |
parent | fa8a123855e20068204982596b8fafceb1a67f0b (diff) |
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')
-rw-r--r-- | drivers/gpu/drm/drm_cache.c | 9 |
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) | |||
62 | { | 62 | { |
63 | wbinvd(); | 63 | wbinvd(); |
64 | } | 64 | } |
65 | #elif !defined(__powerpc__) | ||
66 | static void drm_cache_ipi_handler(void *dummy) | ||
67 | { | ||
68 | } | ||
69 | #endif | 65 | #endif |
66 | |||
70 | void | 67 | void |
71 | drm_clflush_pages(struct page *pages[], unsigned long num_pages) | 68 | drm_clflush_pages(struct page *pages[], unsigned long num_pages) |
72 | { | 69 | { |
@@ -95,8 +92,8 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages) | |||
95 | kunmap_atomic(page_virtual, KM_USER0); | 92 | kunmap_atomic(page_virtual, KM_USER0); |
96 | } | 93 | } |
97 | #else | 94 | #else |
98 | if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0) | 95 | printk(KERN_ERR "Architecture has no drm_cache.c support\n"); |
99 | printk(KERN_ERR "Timed out waiting for drm cache flush\n"); | 96 | WARN_ON_ONCE(1); |
100 | #endif | 97 | #endif |
101 | } | 98 | } |
102 | EXPORT_SYMBOL(drm_clflush_pages); | 99 | EXPORT_SYMBOL(drm_clflush_pages); |