diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 16:49:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 16:49:27 -0400 |
commit | ad1490bcd2484a24f5b8d7ae18368b739f3e1e19 (patch) | |
tree | 4248956ddc4621800980dd42ef2d2ca051d38ed0 /kernel/workqueue.c | |
parent | e69bbe75de8ee0e732b8c009197f1a97e804d43c (diff) | |
parent | c30fb26b116e4735597c46ff80cddb582c3c2727 (diff) |
Merge branch 'for-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
Pull workqueue update from Tejun Heo:
"One trivial patch to use setup_deferrable_timer() instead of
open-coding the initialization"
* 'for-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
workqueue: use setup_deferrable_timer
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index c0168b7da1ea..bbf46da28e9a 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -3209,9 +3209,8 @@ static int init_worker_pool(struct worker_pool *pool) | |||
3209 | INIT_LIST_HEAD(&pool->idle_list); | 3209 | INIT_LIST_HEAD(&pool->idle_list); |
3210 | hash_init(pool->busy_hash); | 3210 | hash_init(pool->busy_hash); |
3211 | 3211 | ||
3212 | init_timer_deferrable(&pool->idle_timer); | 3212 | setup_deferrable_timer(&pool->idle_timer, idle_worker_timeout, |
3213 | pool->idle_timer.function = idle_worker_timeout; | 3213 | (unsigned long)pool); |
3214 | pool->idle_timer.data = (unsigned long)pool; | ||
3215 | 3214 | ||
3216 | setup_timer(&pool->mayday_timer, pool_mayday_timeout, | 3215 | setup_timer(&pool->mayday_timer, pool_mayday_timeout, |
3217 | (unsigned long)pool); | 3216 | (unsigned long)pool); |