diff options
author | Gabriel Krisman Bertazi <krisman@collabora.co.uk> | 2017-01-09 19:56:49 -0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-01-10 11:17:01 +0100 |
commit | f9a87bd7d5b64075af87345ae42f3984c56bddb6 (patch) | |
tree | a6a3d524a991724d17ce1fda5dac4ff150a95a18 /include/drm | |
parent | f0e36723a68dfd959168c73bfa7ca6fa426eadf5 (diff) | |
download | op-kernel-dev-f9a87bd7d5b64075af87345ae42f3984c56bddb6.zip op-kernel-dev-f9a87bd7d5b64075af87345ae42f3984c56bddb6.tar.gz |
drm: Move drm_clflush prototypes to drm_cache header file
Continue to clean up drmP.h by moving the cache flushing functions into
it's own header file.
Compile-tested only
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170109215649.6860-2-krisman@collabora.co.uk
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 5 | ||||
-rw-r--r-- | include/drm/drm_cache.h | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 9af3bb1..e5882d5 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -731,11 +731,6 @@ int drm_noop(struct drm_device *dev, void *data, int drm_invalid_op(struct drm_device *dev, void *data, struct drm_file *file_priv); -/* Cache management (drm_cache.c) */ -void drm_clflush_pages(struct page *pages[], unsigned long num_pages); -void drm_clflush_sg(struct sg_table *st); -void drm_clflush_virt_range(void *addr, unsigned long length); - /* * These are exported to drivers so that they can implement fencing using * DMA quiscent + idle. DMA quiescent usually requires the hardware lock. diff --git a/include/drm/drm_cache.h b/include/drm/drm_cache.h index cebecff..beab0f0 100644 --- a/include/drm/drm_cache.h +++ b/include/drm/drm_cache.h @@ -33,7 +33,11 @@ #ifndef _DRM_CACHE_H_ #define _DRM_CACHE_H_ +#include <linux/scatterlist.h> + void drm_clflush_pages(struct page *pages[], unsigned long num_pages); +void drm_clflush_sg(struct sg_table *st); +void drm_clflush_virt_range(void *addr, unsigned long length); static inline bool drm_arch_can_wc_memory(void) { |