Messages in this thread Patch in this message | | | Date | Mon, 1 May 2017 15:53:24 -0400 | From | Tejun Heo <> | Subject | [GIT PULL] workqueue changes for v4.12-rc1 |
| |
Hello,
One trivial patch to use setup_deferrable_timer() instead of open-coding the initialization.
Thanks.
The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201:
Linux 4.11-rc1 (2017-03-05 12:59:56 -0800)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-4.12
for you to fetch changes up to c30fb26b116e4735597c46ff80cddb582c3c2727:
workqueue: use setup_deferrable_timer (2017-03-06 15:42:20 -0500)
---------------------------------------------------------------- Geliang Tang (1): workqueue: use setup_deferrable_timer
kernel/workqueue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 072cbc9..54a8fff 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3208,9 +3208,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);
| |