Re: [PATCH v2] thermal: core: Add WQ_UNBOUND to alloc_workqueue users

From: Marco Crivellari

Date: Fri May 15 2026 - 04:49:58 EST


On Thu, May 14, 2026 at 4:25 PM Marco Crivellari
<marco.crivellari@xxxxxxxx> wrote:
> diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
> index 2f4e2dc46b8f..1ac4262dafbc 100644
> --- a/drivers/thermal/thermal_core.c
> +++ b/drivers/thermal/thermal_core.c
> @@ -1889,7 +1889,8 @@ static int __init thermal_init(void)
> if (result)
> goto error;
>
> - thermal_wq = alloc_workqueue("thermal_events", WQ_POWER_EFFICIENT, 0);
> + thermal_wq = alloc_workqueue("thermal_events",
> + WQ_POWER_EFFICIENT | WQ_UNBOUND, 0);
> if (!thermal_wq) {
> result = -ENOMEM;
> goto unregister_netlink;

I just realized we can drop WQ_POWER_EFFICIENT now, because the
workqueue is unbound.
I will send the v3 removing the power efficient flag. Sorry for not
noticing that before.

Thanks!

--

Marco Crivellari

SUSE Labs