From nobody Fri Jun 12 13:57:07 2026 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 51E633BB102 for ; Thu, 14 May 2026 13:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778765356; cv=none; b=m7DWmvByMwns0CwiWnbWd9bEN131EKjjUellMGK+0LahfalNrGSplRqQzkXK8P4T9JO8XzVQKEoGZgOm+cdSEnppwarS14CFZKStS5mdiUMNL4RwlksddxjqLcKgSyoc7UyE5cH0LF1i4U7ZA4QWxfZHODIO7fEajjQ7T/EJ6Ig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778765356; c=relaxed/simple; bh=BbcfHwBHVv6WXsVeyFwtzErk2WsFg1SfD9AjoNqoV0c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=j7YyOA0oib6of0yrIVOS5ghZsQukiM/gyrCxAQYhJVHa2JaMA27ObdvoyWzg9vYVZPzFikIfcPq0tESfbNiBGU7yAIYgDdLLD9jjJYqmaeMHefkiU0SGJeVoPu4d9TPH4XJeiDATvP4MZFT9w0pBhAj0V/59SURH20YdXuXq1fE= 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=DcYD7K96; arc=none smtp.client-ip=209.85.221.47 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="DcYD7K96" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-43d734223e4so4869417f8f.0 for ; Thu, 14 May 2026 06:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778765351; x=1779370151; 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=MtBK/h89H6dfJ3EcXAN8IHTwccnlBxh7pW1GbdLixAU=; b=DcYD7K96qFUAP5KBa9XZ2DZX9I//7yQsujGMj+CA8vQZoyW5JUX8QdO4TKfgwKHfkv RBT9g6mJ2dCyxoPmpCM2K8ISWEf+6JpaCj5dm/LqTm+G/IH5aqMettRXCExMNN0oWNpe DFDjI3LcY/e7jmf25lCIZ4PoFqnQmYMDpArlh1h4snhac899hXaA8uiOjsxk/paL2iNS PjyDjWQ7D/PkorE0frduWC94hzUB2o1WOlXvPIoD1lc1wavNgD6drCRzU67+En1pJmTi UHylpBy2+XxPtByke6Of4uM7f3ZAx0OBFMgxg01+XYchvTESflOyVgtqSlw4zTA6rYQw Iwgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778765351; x=1779370151; 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=MtBK/h89H6dfJ3EcXAN8IHTwccnlBxh7pW1GbdLixAU=; b=R3tIoStMosWe4LGVqBGObSn+6yjTo5Ylu/BbAYZmTigxoZTZLBUovIAkg+BQH6oFoE XAJfe2WHDhdJ13yfcmkVud5co8RYsUJWWg7GnlIx3hExcNuMXiUDE+HHsHRJrQ/mb1Kp oUshelRhI8Q2Z4eal2xCNvsOmkPWS2z7pf3+lVAyG/ytGOec095lwMuewCu5YbGXIC6a MqHKq6OCUNObfRZ8+yKYVOjcFbxO7xTo7UPtGcFC491/ed8bDkolLq5f5yallX6Am3Uy TLS/1aSqUh+MTP/b7C8X05MLg8cMvcUo2PQK72lh1lBHFG4yTG1d6rE2J6FYTZ63aCi3 u9Gg== X-Gm-Message-State: AOJu0Yz6dFKRm04XCw7sOZsUAV63aDRZcRQsNRmrG0e9T5Ls875/xtev YJK+SRiHKubSzoLpKvxro0WFAT02MC6Nzus0J7mBdKzxAdQqnELZfI75LbXUFgBlmr2xOfJS5nA WIyGUCaY= X-Gm-Gg: Acq92OHdftpB/HjYWMUbmEPmXrrjF2fPQSOUzhrzr5R8r5Shgp0DHcn7bJGnAlPyOnQ QA1C4Wujz6Gy2/yYhzKyDPklfn7zCpLt5Kd7KpCTn7oy7BKPwhFGN47JKcogPUlTxr0oCXIllzP TR5FBQIbIfato5eCmpQjA30+YS0dEr/d1Ky4iUh/uyMf1qvogb5O4HKgTeAcT21H2Ajf2s3BJAx KX1IA7MjY2MBXjf8WwGhELg9U8kB3Re9pRCik73IF6rEO7wJcGyoYFzMsPMLOZ2Vui3fQaBdguq eGc5ZxsYhSQQy62YA2s+RYD2kOtSj3UL8fx6y33YWLWoAuSNdngFjGWILJRnaAv0A/8iw8gFAp2 O3Sa2fUvtAqxoB8hz0QK5AQjNiV1gKWFG99ig8FHPJ6EctVVspIMUpozgJHY8n0EDl+4M4qZout 5ts8W8Ji8iLHEm/4G3xjyA2qO3Rtf104wWq0/k78Thceb/lqg= X-Received: by 2002:a05:6000:4381:b0:43d:7874:5d3b with SMTP id ffacd0b85a97d-45d90a8eec8mr6634989f8f.9.1778765350776; Thu, 14 May 2026 06:29:10 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45da15a666fsm6280725f8f.36.2026.05.14.06.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 06:29:10 -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] thermal: core: Add WQ_PERCPU to alloc_workqueue users Date: Thu, 14 May 2026 15:29:01 +0200 Message-ID: <20260514132901.275477-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. In order to keep alloc_workqueue() behavior identical, explicitly request WQ_PERCPU. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/thermal/thermal_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 2f4e2dc46b8f..691c5e749c3e 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; =20 - thermal_wq =3D alloc_workqueue("thermal_events", WQ_POWER_EFFICIENT, 0); + thermal_wq =3D alloc_workqueue("thermal_events", + WQ_POWER_EFFICIENT | WQ_PERCPU, 0); if (!thermal_wq) { result =3D -ENOMEM; goto unregister_netlink; --=20 2.54.0