From nobody Sun Jun 28 00:12:18 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 731E0C433EF for ; Thu, 17 Feb 2022 18:57:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244811AbiBQS5a (ORCPT ); Thu, 17 Feb 2022 13:57:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244700AbiBQS5H (ORCPT ); Thu, 17 Feb 2022 13:57:07 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B9035D1B7; Thu, 17 Feb 2022 10:56:52 -0800 (PST) Date: Thu, 17 Feb 2022 18:56:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1645124210; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=baQcv6wFGYKcQd6nz1d1Tn5RZ82tFmyiUoZNlnwCtvM=; b=3rvZ0UjQN6iv4wfIvlR5FpqEuz8R9LtEBLW6WreBigvqObb0QQAFaKqA0/vdcP5g42mLcQ +qnvRhx//huF3Kc8CB13qBzqtDZ0MIrqZJB7tjUvbE51f7IgEqvZ4H8eIfXMD0gj1s8rYi tdi18+ODCMkDPj03Agirg3GCAoqr5DKjwx06SKZlxT0stybDADpFCFC2Sw8bPPZRzb2uUB MmgTetw1J8yz4EZXagqTP5n/pQ7SFmPQFmFZ3e1Op5JQeJOJEuPKMOCmIZCzGG9/8/9GJq EV0rCQ0LanwyjVfTI1p+cZX4U40yfni0s78kahyN2ExOAhQOBNsW//A0OC3J5w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1645124210; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=baQcv6wFGYKcQd6nz1d1Tn5RZ82tFmyiUoZNlnwCtvM=; b=Xg5opv/QVpyyn3FJPWePeINyOizrH3+7O3aTlrY9YXXZ+oOKxXgW9Y/dFEPW/Py9KoXZNM gNW47fWcZ71A/RBg== From: "tip-bot2 for Frederic Weisbecker" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] workqueue: Decouple HK_FLAG_WQ and HK_FLAG_DOMAIN cpumask fetch Cc: Frederic Weisbecker , "Peter Zijlstra (Intel)" , Juri Lelli , Phil Auld , Tejun Heo , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220207155910.527133-3-frederic@kernel.org> References: <20220207155910.527133-3-frederic@kernel.org> MIME-Version: 1.0 Message-ID: <164512420990.16921.13332664205737872057.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 7b45b51e778021cd7817b8f0d743a2c73205c011 Gitweb: https://git.kernel.org/tip/7b45b51e778021cd7817b8f0d743a2c73= 205c011 Author: Frederic Weisbecker AuthorDate: Mon, 07 Feb 2022 16:59:04 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 16 Feb 2022 15:57:54 +01:00 workqueue: Decouple HK_FLAG_WQ and HK_FLAG_DOMAIN cpumask fetch To prepare for supporting each feature of the housekeeping cpumask toward cpuset, prepare each of the HK_FLAG_* entries to move to their own cpumask with enforcing to fetch them individually. The new constraint is that multiple HK_FLAG_* entries can't be mixed together anymore in a single call to housekeeping cpumask(). This will later allow, for example, to runtime modify the cpulist passed through "isolcpus=3D", "nohz_full=3D" and "rcu_nocbs=3D" kernel boot parameters. Signed-off-by: Frederic Weisbecker Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Juri Lelli Reviewed-by: Phil Auld Acked-by: Tejun Heo Link: https://lore.kernel.org/r/20220207155910.527133-3-frederic@kernel.org --- kernel/workqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 33f1106..61ed310 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -6006,13 +6006,13 @@ static void __init wq_numa_init(void) void __init workqueue_init_early(void) { int std_nice[NR_STD_WORKER_POOLS] =3D { 0, HIGHPRI_NICE_LEVEL }; - int hk_flags =3D HK_FLAG_DOMAIN | HK_FLAG_WQ; int i, cpu; =20 BUILD_BUG_ON(__alignof__(struct pool_workqueue) < __alignof__(long long)); =20 BUG_ON(!alloc_cpumask_var(&wq_unbound_cpumask, GFP_KERNEL)); - cpumask_copy(wq_unbound_cpumask, housekeeping_cpumask(hk_flags)); + cpumask_copy(wq_unbound_cpumask, housekeeping_cpumask(HK_FLAG_WQ)); + cpumask_and(wq_unbound_cpumask, wq_unbound_cpumask, housekeeping_cpumask(= HK_FLAG_DOMAIN)); =20 pwq_cache =3D KMEM_CACHE(pool_workqueue, SLAB_PANIC); =20