Skip to contentSkip to conversation

workqueue: remove unused work_clear_pending()

PATCH Applied Lai Jiangshan 2 participants 2 messages May 22, 2014 Workqueue

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 workqueue: remove unused work_clear_pending()

In 8930caba, 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.

---
 include/linux/workqueue.h |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
include/linux/workqueue.h +0 -7
index 860fcca..89b662b 100644
@@ -273,13 +273,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.
Signature · 1 line
1.7.4.4
maintainer Applied
#1 lore raw
Quoted 1 line · Lai Jiangshan

In 8930caba, setting last CPU and clearing PENDING got merged into a single

Ditto.

Quoted 4 lines

operation (set_work_cpu_and_clear_pending()), which resulted that the internal routine work_clear_pending() is not used any more.

Applied to wq/for-3.16.

Thanks.

Signature · 1 line
tejun