Skip to content

Commit 3e6761f

Browse files
YueHaibingickle
authored andcommitted
drm/i915: Remove unused inline function drain_delayed_work()
It is not used since commit 058179e ("drm/i915/gt: Replace hangcheck by heartbeats") Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 23ec9f4 commit 3e6761f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

drivers/gpu/drm/i915/i915_utils.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -266,19 +266,6 @@ static inline int list_is_last_rcu(const struct list_head *list,
266266
return READ_ONCE(list->next) == head;
267267
}
268268

269-
/*
270-
* Wait until the work is finally complete, even if it tries to postpone
271-
* by requeueing itself. Note, that if the worker never cancels itself,
272-
* we will spin forever.
273-
*/
274-
static inline void drain_delayed_work(struct delayed_work *dw)
275-
{
276-
do {
277-
while (flush_delayed_work(dw))
278-
;
279-
} while (delayed_work_pending(dw));
280-
}
281-
282269
static inline unsigned long msecs_to_jiffies_timeout(const unsigned int m)
283270
{
284271
unsigned long j = msecs_to_jiffies(m);

0 commit comments

Comments
 (0)