projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad32152
)
drm: add helper to check for wc memory support
author
Dave Airlie
<
[email protected]
>
Sat, 30 Jan 2016 05:59:32 +0000
(07:59 +0200)
committer
Alex Deucher
<
[email protected]
>
Tue, 2 Feb 2016 15:08:43 +0000
(10:08 -0500)
Reviewed-by: Christian König <
[email protected]
>
Reviewed-by: Michel Dänzer <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
Signed-off-by: Oded Gabbay <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
include/drm/drm_cache.h
patch
|
blob
|
history
diff --git
a/include/drm/drm_cache.h
b/include/drm/drm_cache.h
index 7bfb063029d83fe1374e78a174f4a638bc39bc49..461a0558bca4d8d16e81b88e0286e3fa6251ab79 100644
(file)
--- a/
include/drm/drm_cache.h
+++ b/
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