diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 23:49:27 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 23:49:27 +0300 |
commit | ad1490bcd2484a24f5b8d7ae18368b739f3e1e19 (patch) | |
tree | 4248956ddc4621800980dd42ef2d2ca051d38ed0 /kernel/workqueue.c | |
parent | e69bbe75de8ee0e732b8c009197f1a97e804d43c (diff) | |
parent | c30fb26b116e4735597c46ff80cddb582c3c2727 (diff) | |
download | linux-ad1490bcd2484a24f5b8d7ae18368b739f3e1e19.tar.xz |
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) INIT_LIST_HEAD(&pool->idle_list); hash_init(pool->busy_hash); - init_timer_deferrable(&pool->idle_timer); - pool->idle_timer.function = idle_worker_timeout; - pool->idle_timer.data = (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); |