[PATCH 06/32] acpi: kacpi*_wq don't need WQ_MEM_RECLAIM

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Monday, January 3, 2011 - 6:49 am

ACPI workqueues aren't used during memory reclaming.  Use
alloc_workqueue() to create workqueues w/o rescuers.

If the purpose of the separation between kacpid_wq and kacpi_notify_wq
was to give notifications better response time, kacpi_notify_wq can be
dropped and kacpi_wq can be created with higher @max_active.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
---
Only compile tested.  Please feel free to take it into the subsystem
tree or simply ack - I'll route it through the wq tree.

Thanks.

 drivers/acpi/osl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 055d7b7..c961e18 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1573,9 +1573,9 @@ acpi_status __init acpi_os_initialize(void)
 
 acpi_status __init acpi_os_initialize1(void)
 {
-	kacpid_wq = create_workqueue("kacpid");
-	kacpi_notify_wq = create_workqueue("kacpi_notify");
-	kacpi_hotplug_wq = create_workqueue("kacpi_hotplug");
+	kacpid_wq = alloc_workqueue("kacpid", 0, 1);
+	kacpi_notify_wq = alloc_workqueue("kacpi_notify", 0, 1);
+	kacpi_hotplug_wq = alloc_workqueue("kacpi_hotplug", 0, 1);
 	BUG_ON(!kacpid_wq);
 	BUG_ON(!kacpi_notify_wq);
 	BUG_ON(!kacpi_hotplug_wq);
-- 
1.7.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 01/32] arm/omap: use system_wq in mailbox, Tejun Heo, (Mon Jan 3, 6:49 am)
[PATCH 06/32] acpi: kacpi*_wq don't need WQ_MEM_RECLAIM, Tejun Heo, (Mon Jan 3, 6:49 am)
[PATCH 11/32] v4l/cx18: update workqueue usage, Tejun Heo, (Mon Jan 3, 6:49 am)
[PATCH 25/32] ext4: convert to alloc_workqueue(), Tejun Heo, (Mon Jan 3, 6:49 am)
[PATCH 28/32] xfs: convert to alloc_workqueue(), Tejun Heo, (Mon Jan 3, 6:49 am)
Re: [PATCH 20/32] video/msm_fb: use system_wq instead of d ..., Stanislaw Gruszka, (Mon Jan 3, 10:06 am)
Re: [PATCH 01/32] arm/omap: use system_wq in mailbox, Kanigeri, Hari, (Mon Jan 3, 2:35 pm)
Re: [PATCH 11/32] v4l/cx18: update workqueue usage, Andy Walls, (Mon Jan 3, 5:54 pm)
Re: [PATCH 11/32] v4l/cx18: update workqueue usage, Andy Walls, (Tue Jan 4, 6:21 am)