]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / thermal: Remove create_workqueue()
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Tue, 7 Jun 2016 03:15:40 +0000 (08:45 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Jun 2016 00:12:56 +0000 (02:12 +0200)
commit48d1abfcc6ba84ebdbe59fda2e535b4e3698feb1
tree0a412bcccec3ccd19fb06c5f83e7ff0544a20a6f
parent20622c255526a9beb99383b4e2d9baa90b16c9d4
ACPI / thermal: Remove create_workqueue()

alloc_workqueue replaces deprecated create_workqueue().

A dedicated workqueue has been used since the workqueue
acpi_thermal_pm_queue with workitem &tz->thermal_check_work
(maps to acpi_thermal_check_fn), is involved in thermal zone polling.
Wallclock time is actually important and getting delayed in handling
critical temperature event can actually lead to unnecessary hardware
damage. So while this is not used during memory reclaim, we still want
forward progress guarantee and be generally snappy in servicing it.
Hence, WQ_MEM_RECLAIM and WQ_HIGHPRI have been used here.

Since there are only a fixed number of work items, explicit concurrency
limit is unnecessary here.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c