aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2014-05-22 16:43:56 +0800
committerMoyster <oysterized@gmail.com>2017-12-05 18:05:52 +0100
commitb108a25e8ec0b43cd8afdf0fedd4299f2284557e (patch)
tree4b13ed58d942cfd23640baaedf52478f21895df2 /include/linux
parentf84001280d5ed54959b5c4b5b1f9e5b02853ec71 (diff)
workqueue: remove unused work_clear_pending()
In 8930caba3dbd ("workqueue: disable irq while manipulating PENDING"), setting last CPU and clearing PENDING got merged into a single operation (set_work_cpu_and_clear_pending()), which resulted that the internal routine work_clear_pending() is not used any more. tj: Minor description tweak. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/workqueue.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 681f295b1..89c8089a0 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -286,13 +286,6 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; }
#define delayed_work_pending(w) \
work_pending(&(w)->work)
-/**
- * work_clear_pending - for internal use only, mark a work item as not pending
- * @work: The work item in question
- */
-#define work_clear_pending(work) \
- clear_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work))
-
/*
* Workqueue flags and constants. For details, please refer to
* Documentation/workqueue.txt.