aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0658-drm-amdgpu-remove-now-unused-fence-functions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0658-drm-amdgpu-remove-now-unused-fence-functions.patch')
-rw-r--r--common/recipes-kernel/linux/files/0658-drm-amdgpu-remove-now-unused-fence-functions.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0658-drm-amdgpu-remove-now-unused-fence-functions.patch b/common/recipes-kernel/linux/files/0658-drm-amdgpu-remove-now-unused-fence-functions.patch
new file mode 100644
index 00000000..c5bb655d
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0658-drm-amdgpu-remove-now-unused-fence-functions.patch
@@ -0,0 +1,68 @@
+From 27086c6e50ad62c4b9ebe58492ec5db1baa03f1d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Mon, 26 Oct 2015 13:22:33 +0100
+Subject: [PATCH 0658/1050] drm/amdgpu: remove now unused fence functions
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu.h | 39 -------------------------------------
+ 1 file changed, 39 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+index 4a7306d..a93f6cb 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+@@ -452,45 +452,6 @@ bool amdgpu_fence_need_sync(struct amdgpu_fence *fence,
+ void amdgpu_fence_note_sync(struct amdgpu_fence *fence,
+ struct amdgpu_ring *ring);
+
+-static inline struct amdgpu_fence *amdgpu_fence_later(struct amdgpu_fence *a,
+- struct amdgpu_fence *b)
+-{
+- if (!a) {
+- return b;
+- }
+-
+- if (!b) {
+- return a;
+- }
+-
+- BUG_ON(a->ring != b->ring);
+-
+- if (a->seq > b->seq) {
+- return a;
+- } else {
+- return b;
+- }
+-}
+-
+-static inline bool amdgpu_fence_is_earlier(struct amdgpu_fence *a,
+- struct amdgpu_fence *b)
+-{
+- if (!a) {
+- return false;
+- }
+-
+- if (!b) {
+- return true;
+- }
+-
+- BUG_ON(a->ring != b->ring);
+-
+- return a->seq < b->seq;
+-}
+-
+-int amdgpu_user_fence_emit(struct amdgpu_ring *ring, struct amdgpu_user_fence *user,
+- void *owner, struct amdgpu_fence **fence);
+-
+ /*
+ * TTM.
+ */
+--
+1.9.1
+