Commit 318cd340 authored by Christian König's avatar Christian König Committed by Alex Deucher

drm/amdgpu: remove unneeded fence functions

amdgpu_fence_default_wait isn't needed any more the default wait does the same
thing and amdgpu_test_signaled is dead as well.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6c455ac1
...@@ -822,11 +822,6 @@ static const char *amdgpu_fence_get_timeline_name(struct fence *f) ...@@ -822,11 +822,6 @@ static const char *amdgpu_fence_get_timeline_name(struct fence *f)
return (const char *)fence->ring->name; return (const char *)fence->ring->name;
} }
static inline bool amdgpu_test_signaled(struct amdgpu_fence *fence)
{
return test_bit(FENCE_FLAG_SIGNALED_BIT, &fence->base.flags);
}
static bool amdgpu_test_signaled_any(struct fence **fences, uint32_t count) static bool amdgpu_test_signaled_any(struct fence **fences, uint32_t count)
{ {
int idx; int idx;
...@@ -854,12 +849,6 @@ static void amdgpu_fence_wait_cb(struct fence *fence, struct fence_cb *cb) ...@@ -854,12 +849,6 @@ static void amdgpu_fence_wait_cb(struct fence *fence, struct fence_cb *cb)
wake_up_process(wait->task); wake_up_process(wait->task);
} }
static signed long amdgpu_fence_default_wait(struct fence *f, bool intr,
signed long t)
{
return amdgpu_fence_wait_any(&f, 1, intr, t);
}
/** /**
* Wait the fence array with timeout * Wait the fence array with timeout
* *
...@@ -936,6 +925,6 @@ const struct fence_ops amdgpu_fence_ops = { ...@@ -936,6 +925,6 @@ const struct fence_ops amdgpu_fence_ops = {
.get_timeline_name = amdgpu_fence_get_timeline_name, .get_timeline_name = amdgpu_fence_get_timeline_name,
.enable_signaling = amdgpu_fence_enable_signaling, .enable_signaling = amdgpu_fence_enable_signaling,
.signaled = amdgpu_fence_is_signaled, .signaled = amdgpu_fence_is_signaled,
.wait = amdgpu_fence_default_wait, .wait = fence_default_wait,
.release = NULL, .release = NULL,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment