From nobody Fri Jun 12 11:28:12 2026 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7FBD3B19A1 for ; Fri, 15 May 2026 08:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778834970; cv=none; b=e8GcbG3djhLXGoD8IXpEDEz1ETSHjqJN6729L+xt1c36vqlAeTC+4jMLME5zRMlSmQBU66bS221X1Wqb50pQqgTayN1D7Iis5UfV9tEs3b8M67pZe7pUHvvdklaTrTg8O+zWE94/rAAwH8DKwm2qEaiHPqwG3byDPfdFlcD5igY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778834970; c=relaxed/simple; bh=UojO1EoI6P1vrhd85fsUzmawA5cTX8ly/rRizMh3c28=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=H5W2cdVCabIRKhAse5YJiA6m+ZAIuctwHx6IrGbHQcN725mOPTw+CiR6/jeUhckFewg8TqrzVnlEgA9Q2CE1NZYE/Oo+UQBEWXF6PdupyeSbhMHkwSmueFY+XK/cY5IZzyGhQb5qTpT+r58j0WV5FPdh9SN3+bCdMLcebgASsis= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=AR5MluAU; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="AR5MluAU" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4891c00e7aeso73008575e9.2 for ; Fri, 15 May 2026 01:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778834967; x=1779439767; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4Nb7Qe0kdVXL4U4JyJkcRncQBABfAEBAmBW/cBK9axU=; b=AR5MluAUGzTIL+ArY1m0tlWgk0PLkB3qqIV65OpkRQorRpORvrPcIcBeX2Eqlv5Wnn D1slem4qYyNzgxQrNnx2KLukfd1sSLHK3H5htykSQqCkhM+yQKDqORkIss4VfB7MoE/G Zhm7UqEXnhe5584EfzidJbUb5bdMlf7D3JJiKzkA45Y6YJjNHjezDQs93Qh+E6CQyAKa 65YYkuziCOsTY+osKjR9hDeWtcL014IfYJig/OpOfJGijIwVRreMu3UcxVBDOECaLDs9 T5gHSgVXfl60gocKZAnMvFweFXekJr5NsTPMqsRLqt5RscJO1BT+1Z6WjwtstlQtjsOK dNFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778834967; x=1779439767; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4Nb7Qe0kdVXL4U4JyJkcRncQBABfAEBAmBW/cBK9axU=; b=QzxBBRb4fFPdosBDAhXt/eh0Qe2886L2m24iKuRqY6xLcT+M0F3f6GdkmllC/1YoqU h/M3Az2LXEO1nb9KSfiZXjpRJeWCHEjsvUk+3SzPoCsPNtbYYy4a44lHwbTQDdv1i0Nj 1H2lCZ7Oobfd73oM2JChGii4zKJZRk0vwNiFDLc9/jxk3IlHB0cg5NdzG062/zEXLW/I 0cldNN/SzwCAz2S1fc4YelLfRHYjVA0m0sTt4wPZ5tPPPZBo3O26+1/+RnG1o+EpC22l OWJO1bggFtQ05slQV2p1LzGB8hb7Vwgm9rE6ECyRkNvjFJOfUQ2qbePOg8TyVlXX7U3t TFwA== X-Gm-Message-State: AOJu0YwJSUZ2rlfpNSchOErILKLoG+aA2hHJeyiHjeGOfRaRM9ODzJnC 3mwNC/r/ZiNsfPzLJhG3xsdxeBjytQbSuC1WTmkSmv7GDHu2aRXl8zQWLOjWlcdRIPzNBNHtRO8 7VlcVv0Y= X-Gm-Gg: Acq92OHMBxdShDEu8XHHrwujxMiF6MBVB6ON2OzyixSE4faN/cPYJi2zzMmYyMkX2C/ ziCfOaknUHTNWw6EfpUTFg/MYxUD79A4V+Sy01NClsxpCtGnVWMa0HSLsmXCGjAbhX0ZHKV2/UL bSsC/ggIUKXPuSA1whVKWS/oBCx3WHcCZ+Yvzay9L6LI2sgvcFj7i2MiTWIUsaSLbNhEEp5edak HQvds3grsza2TTwg6T9UmqZ+u0zvAUEXiobSetK2+4xGRXj02uA3HSiWLy1NoQWyUoMSMN/CfPA ZP14o+8vP3Gm9Kzoc0T72Tsb+NAKzvbwHuN8JXk78xkaNQpH5muPlozs7b6zXcl4D3KNy5YxCMp u8znDQfaS7uyLd0FWlM/I9FMSiV981u+DublXkSgFqdByCfcw/NWYWNLSHS8KRSvIrwZFUL9oTE vB082cfXUh2JIpZ+uW01nKDRFCiCYakRjUlvxtUf2V8guA2fHvzVhy4yDLbg== X-Received: by 2002:a05:600c:a406:b0:489:1aed:1658 with SMTP id 5b1f17b1804b1-48fe632a9f4mr33070675e9.23.1778834967106; Fri, 15 May 2026 01:49:27 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe5694fbfsm84997545e9.6.2026.05.15.01.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 01:49:26 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba Subject: [PATCH v3] thermal: core: Add WQ_UNBOUND to alloc_workqueue users Date: Fri, 15 May 2026 10:49:20 +0200 Message-ID: <20260515084920.70544-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This continues the effort to refactor workqueue APIs, which began with the introduction of new workqueues and a new alloc_workqueue flag in: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The refactoring is going to alter the default behavior of alloc_workqueue() to be unbound by default. With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn=E2=80=99t explicitly specify WQ_UNB= OUND must now use WQ_PERCPU. For more details see the Link tag below. This workqueue has no benefits being per-CPU, so make it unbound adding WQ_UNBOUND, removing also the WQ_POWER_EFFICIENT flag. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- Changes in v3: - remove WQ_POWER_EFFICIENT: the workqueue has more benetifs being unbound, so just drop this flag and keep only WQ_UNBOUND. Link to v2: https://lore.kernel.org/all/20260514142511.325446-1-marco.crive= llari@suse.com/ Changes in v2: - "thermal_events" workqueue has more benefits being unbound, so instead of WQ_PERCPU, use WQ_UNBOUND. Link to v1: https://lore.kernel.org/all/20260514132901.275477-1-marco.crive= llari@suse.com/ drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 2f4e2dc46b8f..0b322473deac 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1889,7 +1889,7 @@ static int __init thermal_init(void) if (result) goto error; =20 - thermal_wq =3D alloc_workqueue("thermal_events", WQ_POWER_EFFICIENT, 0); + thermal_wq =3D alloc_workqueue("thermal_events", WQ_UNBOUND, 0); if (!thermal_wq) { result =3D -ENOMEM; goto unregister_netlink; --=20 2.54.0