Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lai Jiangshan and committed by
Tejun Heo
cafebac1 79bc251f

-7
-7
include/linux/workqueue.h
··· 273 273 #define delayed_work_pending(w) \ 274 274 work_pending(&(w)->work) 275 275 276 - /** 277 - * work_clear_pending - for internal use only, mark a work item as not pending 278 - * @work: The work item in question 279 - */ 280 - #define work_clear_pending(work) \ 281 - clear_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work)) 282 - 283 276 /* 284 277 * Workqueue flags and constants. For details, please refer to 285 278 * Documentation/workqueue.txt.