From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (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 6F374419FBD for ; Fri, 31 Jul 2026 10:47:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785494863; cv=none; b=PkuTsni1jt1ZQ01TgrDj/6jHmEZU+t2Ireaj8rXm0/yT/udcPrQrDd91z98vIV+yOlN/qGK/HqrV5UP0r3VKSOonN4t9jbzkqIt8PjreJS/rdlJABMlZ+cnpit4FJjPpr5bAvMxvqc7vQEqMZ07DPIu9NVVN9ji64GGoRLy3r6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785494863; c=relaxed/simple; bh=SbE5NnnjMLf0IRNa4xhJpBlGsSBqzfDSxKCBGWSj43c=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=OFSJ087MV9Xu10tgFuMTHopOrZb+WtvUirvO+HU8dAe4s7GFjTyZuVtBXD6F/fzoMIse0/6gjoEBg3+RSLdE/hNO/tsMQMaoEK5zY+jzyfwz9DAoA7bQNq5gY+vIRYQvOCZ7F79PsdPMCkz6YDS9z8+so4Cqs1Vr/VKZgymUo3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jpiecuch.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=YKFLg/E4; arc=none smtp.client-ip=209.85.221.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jpiecuch.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="YKFLg/E4" Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-47407691804so732186f8f.1 for ; Fri, 31 Jul 2026 03:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785494852; x=1786099652; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Z27h1fQmYFd6D52ydmkBguskAI+LpCRqeYbcaWL+DhA=; b=YKFLg/E4A3P30hqgoX3k+frSq9WRabNphwASMlpMJSVcUJrVxVsu/X7mGriQhe48o2 70usdwkszRSPmSBtU1I0WTybN1yftDpaJ7MtTLAcdnB3cHx6sLmbPyUuwYMWoVTzrmUB Fq6hP7pE+CEKrGbMAbXpQTNfoV45Siri0xwqQpz5IdC0TY8uHdOYBjulwfQSG87qgA6G 802jodUOUkXwdNXMTuthyYYqbSb50A48RAIe2JDFv5vdjBKSQTY0p694glx9Vd5/kj8z nO/1vaazHix9J12aA6iVDyW+QxNcTrqsw4KBNz7sTWYJpaAc6Dh/a/UFUBZo1xWvLLMM tG4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785494852; x=1786099652; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Z27h1fQmYFd6D52ydmkBguskAI+LpCRqeYbcaWL+DhA=; b=Hw+jABLkRHf2DaXUmGqehwXvsUcRnrymWnvc4kDxiZTxmHpbZoGo8HTHpIcxMf8hrj xRghbCPyeuacISqO8owUDlxgUc/3MNqxxKY+/jJLFfjf9IoFVrE5gOc+oYnnB2/RKKsz q5jpQBr9kd6gZL+qreKNAw6BaF//XTwQd49LXXeqR2gSm64xaQ2uj1R/4798olvekWU/ CnELYG0+ySOc5HUe3J28amQrQlC9FBlO4KivvDwIrAXlWNzZHjOQvyfcQCzRJ0vBII5E 2Iqs0kixb2BncOWy1hFe3i/9GcIgZ7ONiLmhHOHwqPZqKTWD/zeTWpT+oJ7+I5agU7Jx Ckfw== X-Forwarded-Encrypted: i=1; AHgh+RrpwYrfcRRaTfP0maGhb42iXYHrPKEzSDzMLXkxxp4b2jqBxFzJaIe0yb06C0/9eFMpfqnCm+JSqeFpeM0=@vger.kernel.org X-Gm-Message-State: AOJu0YyF2D8ksisQ+jkE3xy/gXdFcxjrVmdHGPWvyHLQImKXS5jwKnO2 N50G2UZbZxkLMzAzsZHTy2uFAzW1Z6a9WpP0HWdU2NK+JU+Q+UdBXIMHm0o6qAbbxD5eMRdbE8p CQrfkJRmJ+lRPZQ== X-Received: from wmox20.prod.google.com ([2002:a05:600c:1794:b0:495:5204:e932]) (user=jpiecuch job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6000:1865:b0:47f:9752:3277 with SMTP id ffacd0b85a97d-47fd2ab79c7mr3560893f8f.2.1785494851752; Fri, 31 Jul 2026 03:47:31 -0700 (PDT) Date: Fri, 31 Jul 2026 10:47:30 +0000 In-Reply-To: <20260731090334.2911948-2-arighi@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260731090334.2911948-1-arighi@nvidia.com> <20260731090334.2911948-2-arighi@nvidia.com> X-Mailer: aerc 0.21.0-0-g5549850facc2 Message-ID: Subject: Re: [PATCH 1/2] sched_ext: Initialize idle masks before ops.init() From: Kuba Piecuch To: Andrea Righi , Tejun Heo , David Vernet , Changwoo Min Cc: Kuba Piecuch , , Content-Type: text/plain; charset="UTF-8" Hi Andrea, On Fri Jul 31, 2026 at 8:59 AM UTC, Andrea Righi wrote: > @@ -59,11 +59,13 @@ static inline void init_sched_ext_class(void) {} > #endif /* CONFIG_SCHED_CLASS_EXT */ > > #ifdef CONFIG_SCHED_CLASS_EXT > +DECLARE_STATIC_KEY_FALSE(scx_idle_tracking_enabled); > + I was originally thinking about reusing scx_builtin_idle_enabled here, apologies if I wasn't clear enough. My reasoning is: If the user is doing their own idle CPU tracking, in which case scx_builtin_idle_enable will be disabled, what's the point of SCX tracking idle CPUs? Do you see a scenario where using one static branch is problematic? Thanks, Kuba