aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_utils.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-07-15 11:21:04 +0800
committerChris Wilson <chris@chris-wilson.co.uk>2020-07-15 10:16:44 +0100
commit3e6761fd2a3a9a0a13ec16f25897d3dde6414497 (patch)
treea40c1d74f6cc3e22dbdb7a6d26f4ab3f70759585 /drivers/gpu/drm/i915/i915_utils.h
parentdrm/i915/selftest: Fix an error code in live_noa_gpr() (diff)
downloadlinux-dev-3e6761fd2a3a9a0a13ec16f25897d3dde6414497.tar.xz
linux-dev-3e6761fd2a3a9a0a13ec16f25897d3dde6414497.zip
drm/i915: Remove unused inline function drain_delayed_work()
It is not used since commit 058179e72e09 ("drm/i915/gt: Replace hangcheck by heartbeats") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20200715032104.32052-1-yuehaibing@huawei.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_utils.h')
-rw-r--r--drivers/gpu/drm/i915/i915_utils.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h
index b1c5955a52e1..54773371e6bd 100644
--- a/drivers/gpu/drm/i915/i915_utils.h
+++ b/drivers/gpu/drm/i915/i915_utils.h
@@ -266,19 +266,6 @@ static inline int list_is_last_rcu(const struct list_head *list,
return READ_ONCE(list->next) == head;
}
-/*
- * Wait until the work is finally complete, even if it tries to postpone
- * by requeueing itself. Note, that if the worker never cancels itself,
- * we will spin forever.
- */
-static inline void drain_delayed_work(struct delayed_work *dw)
-{
- do {
- while (flush_delayed_work(dw))
- ;
- } while (delayed_work_pending(dw));
-}
-
static inline unsigned long msecs_to_jiffies_timeout(const unsigned int m)
{
unsigned long j = msecs_to_jiffies(m);