]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
thermal: core: Adjust thermal_wq allocation flags
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 7 Apr 2026 14:06:35 +0000 (16:06 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Apr 2026 10:30:31 +0000 (12:30 +0200)
The thermal workqueue doesn't need to be freezable or per-CPU, so drop
WQ_FREEZABLE and WQ_PERCPU from the flags when allocating it.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[ rjw: Subject rewrite ]
Link: https://patch.msgid.link/3413335.44csPzL39Z@rafael.j.wysocki
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.c

index 1f94667b75148cb54aac2e1bcaaeb986fad81b05..e3e8331ca24e6c5ab25412da73b0f4ae144b8f63 100644 (file)
@@ -1904,8 +1904,7 @@ static int __init thermal_init(void)
        if (result)
                goto error;
 
-       thermal_wq = alloc_workqueue("thermal_events",
-                                     WQ_FREEZABLE | WQ_POWER_EFFICIENT | WQ_PERCPU, 0);
+       thermal_wq = alloc_workqueue("thermal_events", WQ_POWER_EFFICIENT, 0);
        if (!thermal_wq) {
                result = -ENOMEM;
                goto unregister_netlink;