public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH V4 1/5] workqueue: rename system workqueues
@ 2018-01-25  7:01 Wen Yang
  2018-01-25  7:01 ` [RFC PATCH V4 2/5] workqueue: expose attrs for " Wen Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Wen Yang @ 2018-01-25  7:01 UTC (permalink / raw)
  To: tj; +Cc: zhong.weidong, Jiang Biao, Tan Hu, Lai Jiangshan, linux-kernel

Rename system_wq's wq->name from "events" to "system_percpu",
and similarly for the similarly named workqueues.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Tan Hu <tan.hu@zte.com.cn>
Suggested-by: Tejun Heo <tj@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: linux-kernel@vger.kernel.org
---
 kernel/workqueue.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index f699122..67b68bb 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -5601,16 +5601,18 @@ int __init workqueue_init_early(void)
 		ordered_wq_attrs[i] = attrs;
 	}
 
-	system_wq = alloc_workqueue("events", 0, 0);
-	system_highpri_wq = alloc_workqueue("events_highpri", WQ_HIGHPRI, 0);
-	system_long_wq = alloc_workqueue("events_long", 0, 0);
-	system_unbound_wq = alloc_workqueue("events_unbound", WQ_UNBOUND,
+	system_wq = alloc_workqueue("system_percpu", 0, 0);
+	system_highpri_wq = alloc_workqueue("system_percpu_highpri",
+					    WQ_HIGHPRI, 0);
+	system_long_wq = alloc_workqueue("system_percpu_long", 0, 0);
+	system_unbound_wq = alloc_workqueue("system_unbound", WQ_UNBOUND,
 					    WQ_UNBOUND_MAX_ACTIVE);
-	system_freezable_wq = alloc_workqueue("events_freezable",
+	system_freezable_wq = alloc_workqueue("system_percpu_freezable",
 					      WQ_FREEZABLE, 0);
-	system_power_efficient_wq = alloc_workqueue("events_power_efficient",
+	system_power_efficient_wq = alloc_workqueue("system_percpu_power_efficient",
 					      WQ_POWER_EFFICIENT, 0);
-	system_freezable_power_efficient_wq = alloc_workqueue("events_freezable_power_efficient",
+	system_freezable_power_efficient_wq = alloc_workqueue(
+					      "system_percpu_freezable_power_efficient",
 					      WQ_FREEZABLE | WQ_POWER_EFFICIENT,
 					      0);
 	BUG_ON(!system_wq || !system_highpri_wq || !system_long_wq ||
-- 
1.8.3.1

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

end of thread, other threads:[~2018-01-25 16:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-25  7:01 [RFC PATCH V4 1/5] workqueue: rename system workqueues Wen Yang
2018-01-25  7:01 ` [RFC PATCH V4 2/5] workqueue: expose attrs for " Wen Yang
2018-01-25  7:01 ` [RFC PATCH V4 3/5] workqueue: rename unbound_attrs to attrs Wen Yang
2018-01-25  7:01 ` [RFC PATCH V4 4/5] workqueue: convert ->nice to ->sched_attr Wen Yang
2018-01-25  7:01 ` [RFC PATCH V4 5/5] workqueue: introduce a way to set workqueue's scheduler Wen Yang
2018-01-25 15:54 ` [RFC PATCH V4 1/5] workqueue: rename system workqueues Tejun Heo
2018-01-25 16:01   ` Tejun Heo

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