mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] workqueue: use setup_deferrable_timer
@ 2017-02-26  0:58 Geliang Tang
  2017-02-26  0:58 ` [PATCH] writeback: " Geliang Tang
  2017-03-06 20:43 ` [PATCH] workqueue: " Tejun Heo
  0 siblings, 2 replies; 3+ messages in thread
From: Geliang Tang @ 2017-02-26  0:58 UTC (permalink / raw)
  To: Tejun Heo, Lai Jiangshan; +Cc: Geliang Tang, linux-kernel

Use setup_deferrable_timer() instead of init_timer_deferrable() to
simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 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);
-- 
2.9.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-06 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-26  0:58 [PATCH] workqueue: use setup_deferrable_timer Geliang Tang
2017-02-26  0:58 ` [PATCH] writeback: " Geliang Tang
2017-03-06 20:43 ` [PATCH] workqueue: " Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®