drm: Move drm_clflush prototypes to drm_cache header file
authorGabriel Krisman Bertazi <krisman@collabora.co.uk>
Mon, 9 Jan 2017 21:56:49 +0000 (19:56 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Jan 2017 10:17:01 +0000 (11:17 +0100)
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
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/vgem/vgem_drv.h
include/drm/drmP.h
include/drm/drm_cache.h

index 52d01be956cc9a301106b7d9720be35cc3e36ff1..24eb162319384eadf6e053bdb97e8e9e3a974bf5 100644 (file)
@@ -49,6 +49,7 @@
 #include <drm/drm_legacy.h> /* for struct drm_dma_handle */
 #include <drm/drm_gem.h>
 #include <drm/drm_auth.h>
+#include <drm/drm_cache.h>
 
 #include "i915_params.h"
 #include "i915_reg.h"
index 1f8798ad329c416a0aa9c867d0ceae826ae6c313..cb59c7ab98b9e9ccdbfaa9b67ae824dba25fcef3 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <drm/drmP.h>
 #include <drm/drm_gem.h>
+#include <drm/drm_cache.h>
 
 #include <uapi/drm/vgem_drm.h>
 
index 9af3bb14641f71a4fc13bef169829e5c59225e86..e5882d5a68e5b19aa955ed786a5546efdcc1c500 100644 (file)
@@ -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.
index cebecff536a3a6aec1b06c69e32d8bb4ec2f4f29..beab0f0d0cfba9f5310b4dafbe09862e2dd25054 100644 (file)
 #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)
 {