Commit c30fb26b authored by Geliang Tang's avatar Geliang Tang Committed by Tejun Heo
Browse files

workqueue: use setup_deferrable_timer

Use setup_deferrable_timer() instead of init_timer_deferrable() to
simplify the code.
Signed-off-by: default avatarGeliang Tang <>
Signed-off-by: default avatarTejun Heo <>
parent c1ae3cfa
......@@ -3208,9 +3208,8 @@ static int init_worker_pool(struct worker_pool *pool)
pool->idle_timer.function = idle_worker_timeout;
pool-> = (unsigned long)pool;
setup_deferrable_timer(&pool->idle_timer, idle_worker_timeout,
(unsigned long)pool);
setup_timer(&pool->mayday_timer, pool_mayday_timeout,
(unsigned long)pool);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment