From: Lai Jiangshan <[email protected]>
worker_enter_idle() is only called in worker_thread() now.
Signed-off-by: Lai Jiangshan <[email protected]>
---
kernel/workqueue.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 7fc4c2fa21d6..afe62649fb3a 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -1799,8 +1799,7 @@ static void worker_enter_idle(struct worker *worker)
(worker->hentry.next || worker->hentry.pprev)))
return;
- /* can't use worker_set_flags(), also called from create_worker() */
- worker->flags |= WORKER_IDLE;
+ worker_set_flags(worker, WORKER_IDLE);
pool->nr_idle++;
worker->last_active = jiffies;
--
2.19.1.6.gb485710b