diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 647d6b09c98..f584aba78ca 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -346,8 +346,6 @@ alloc_ordered_workqueue(const char *name, unsigned int flags) extern void destroy_workqueue(struct workqueue_struct *wq); -extern bool workqueue_empty(struct workqueue_struct *wq); - extern int queue_work(struct workqueue_struct *wq, struct work_struct *work); extern int queue_work_on(int cpu, struct workqueue_struct *wq, struct work_struct *work); diff --git a/kernel/workqueue.c b/kernel/workqueue.c index d86d61feb2f..0400553f0d0 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3068,32 +3068,6 @@ reflush: } EXPORT_SYMBOL_GPL(destroy_workqueue); -/** - * workqueue_empty - test whether a workqueue is empty - * @wq: target workqueue - * - * Test whether @wq's cpu workqueue(s) are empty. - * - * Returns: false - workqueue is not empty - * true - workqueue is empty - */ -bool workqueue_empty(struct workqueue_struct *wq) -{ - int cpu; - - for_each_cwq_cpu(cpu, wq) { - struct cpu_workqueue_struct *cwq = get_cwq(cpu, wq); - - if (!cwq->nr_active && list_empty(&cwq->delayed_works)) - continue; - - return false; - } - - return true; -} -EXPORT_SYMBOL_GPL(workqueue_empty); - /** * workqueue_set_max_active - adjust max_active of a workqueue * @wq: target workqueue