mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] workqueue: Remove unused __cancel_delayed_work
@ 2014-02-15  5:19 Tan Xiaojun
  2014-02-18 23:34 ` [PATCH wq/for-3.15] workqueue: Remove deprecated __cancel_delayed_work() Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Tan Xiaojun @ 2014-02-15  5:19 UTC (permalink / raw)
  To: tj; +Cc: linux-kernel

We use safer cancel_delayed_work() instead of __cancel_delayed_work,
and no one will use __cancel_delayed_work. So remove it.

Signed-off-by: Tan Xiaojun <tanxiaojun@huawei.com>
---
 include/linux/workqueue.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 594521b..edc9410 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -605,21 +605,6 @@ static inline bool keventd_up(void)
 	return system_wq != NULL;
 }
 
-/*
- * Like above, but uses del_timer() instead of del_timer_sync(). This means,
- * if it returns 0 the timer function may be running and the queueing is in
- * progress.
- */
-static inline bool __deprecated __cancel_delayed_work(struct delayed_work *work)
-{
-	bool ret;
-
-	ret = del_timer(&work->timer);
-	if (ret)
-		work_clear_pending(&work->work);
-	return ret;
-}
-
 /* used to be different but now identical to flush_work(), deprecated */
 static inline bool __deprecated flush_work_sync(struct work_struct *work)
 {
-- 
1.8.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-18 23:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-15  5:19 [PATCH] workqueue: Remove unused __cancel_delayed_work Tan Xiaojun
2014-02-18 23:34 ` [PATCH wq/for-3.15] workqueue: Remove deprecated __cancel_delayed_work() Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®