summaryrefslogtreecommitdiffstats
path: root/kernel/include/drm/drm_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/drm/drm_cache.h')
-rw-r--r--kernel/include/drm/drm_cache.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/include/drm/drm_cache.h b/kernel/include/drm/drm_cache.h
index 7bfb06302..461a0558b 100644
--- a/kernel/include/drm/drm_cache.h
+++ b/kernel/include/drm/drm_cache.h
@@ -35,4 +35,13 @@
void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
+static inline bool drm_arch_can_wc_memory(void)
+{
+#if defined(CONFIG_PPC) && !defined(CONFIG_NOT_COHERENT_CACHE)
+ return false;
+#else
+ return true;
+#endif
+}
+
#endif