Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp497972lqc; Fri, 8 Mar 2024 04:03:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUlMiKTgL3ibxNwRpwgQs8tdRs6OFgHwCY6d6IUcwa2g70kAh3jeON4APVSczG9XDgiFk5dnCPvugRjytDG/cFo5Ik4XkOY07oUy6+tlw== X-Google-Smtp-Source: AGHT+IHjlrf5wUCKU+67q1duyyWQm4HhjGsD7EdbTbWve4/B7fMtNdiFQji87+ADWTRXjkOwfuIs X-Received: by 2002:a17:907:a786:b0:a45:f39e:aad with SMTP id vx6-20020a170907a78600b00a45f39e0aadmr928355ejc.1.1709899413106; Fri, 08 Mar 2024 04:03:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709899413; cv=pass; d=google.com; s=arc-20160816; b=WMzMCcJjQLwHkTjCPzqXYtt5OV6ELwI1DkHmkWrSQqLSHGEx6k9sv0Vk/0aJYa2pwg ahxO27V4w16eeN7wDK8TmV3KWKpzPQv+B92w+LyXL1IWE8klBYyPJFzOQc1kKJC4gtvs f1BwVg/9z9FEC3KYfhsBwGAUizWmPhdB+s2aUZQU09oJljd/dMF5qYf1MTl+08y5agn/ YAZxL8NymMazWAOCugqRHCsBQNporjQEDsIwC8yPMKVky4MpcZXIj8a4ln20pzSbkPKZ AjuLvLpD+Cr6xEzR+S/0tLqPe8V2Nn1rGkAckQgjjPhYAl+xpFFmH8Z3sQugJFnAdmT0 yTqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=RmI6aRkHLUk924FwSbrPosO853X8+438VxPHVQo7rOg=; fh=fH2O/lYcFWakf0PN2MNMiGhF8WA+YGdbDpu2fQNBS2A=; b=tknnbC3IyWm3eNMc9DI3R9ECEFhoN37OYIDRR0ynKI94NgnZa7bLhZkJu9s3lk34pO ruO+WSsM5ZrFpf0agqiSHYP6+YupMAosrJaBkhsXFqXuWLABhZHLIDDU7tC8GqgdaVbj yXpzHGWBV/2kAcdFTBhKx0aEyPbHgRPOOJs6qzbsewblJFzgjf1iAv4eIKtOkrqJCDhI AIiyDhNY+2b/XONnXEs1ePhwsFIOBJ530kBIRHICc+v1UbYsx9rw0IVodkIaXbse2c6i FC89c1oIxnEJ30al4lxVTvE/OCkSt5TOXa6cmB5BEz4P2CQbF1QZXqiC+aTACzMgOpME RIlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cHfelmDe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-96970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kz1-20020a17090777c100b00a4432548165si8030252ejc.552.2024.03.08.04.03.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 04:03:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cHfelmDe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-96970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D2A461F218F8 for ; Fri, 8 Mar 2024 12:03:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA9735647A; Fri, 8 Mar 2024 12:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cHfelmDe" Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 9ED485579D for ; Fri, 8 Mar 2024 12:03:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709899406; cv=none; b=UuJ4sczx8vielYSuo8JcfuSHv7L56UyVreh0KZDiOdfY9dMoPPLuySRBZ3VulsBY7CZKgzEGuAGR8F2zEPykGaWiL1SejxysZATAWb2YDs+Q0d0leQhTmjZtwfYhivBz1jnMEj80IIrA0nsL4qQrfAXTGyBYagO9hkh+q8+nm/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709899406; c=relaxed/simple; bh=ETgP2lj760pIFPdZqiPAus+1NeMvzLtFCePmbZ3NWYY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rFms7pJ4kr+V4qe70IIcyi3iaDQpshQiplMYXUglGtlJBebxpW06pwAG295+kaP4v71PJ4k8dE9noAu173v+NVvLOz94+eLQJDdkgNzyKkceQTWddiw6zqd3hdSGIB8qZplxkZXfgatsYhQ6v8cCDkdERYvJ0s9fgn68+qNpxQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cHfelmDe; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-29b780569d1so556353a91.3 for ; Fri, 08 Mar 2024 04:03:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709899404; x=1710504204; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RmI6aRkHLUk924FwSbrPosO853X8+438VxPHVQo7rOg=; b=cHfelmDeuotJbdFwyQWQsxQ25fwf6hmDrHLGxc/18vN4K9ygBk/ErYrdQOOQjsszbC vsigK0XNRNtC3vVPHowX0x6WlL6NiWvMjeyHmBeb4PE3VLz7nM+jfHU6vJ3UE/t8CiqE mouQO9LiDKnXBZI3YpPVzXUI7Vql57h7tQ83gjlNBlZHrO6fTg8nBjAwdCWqf/vP1UZA 1t39QVuVCX7CJQaYODOUtcNE/WFEHSraG5Xu4VS9bo/iO0RbXuVcdPZMxA2B9gcK0Kl9 LH+ndpIDC9OHCPPcDGj67B44qjaF1rdle57Eka3xcX/KeX7FTzclFNOGKshd3A03qNa/ yRCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709899404; x=1710504204; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RmI6aRkHLUk924FwSbrPosO853X8+438VxPHVQo7rOg=; b=p7/9o2g4DKHC8mTuvD1MLpQB5i3vfKoqZYo6cF3LaobO6llHBfJGst0qZ74qJXeNC4 8Vr3/3DjWCbIT/y3FqL4uPREd8YL60p7LFJaoRPeONwf/GGyBKET5JaTsdVxbqGAItXI TWvv1mtBrsNcx5YIr2VywcSyf+BXrMmbPmkpGL6vNuiGmwhQ+VqjRkPlon9J77VHfeGB 3+Vi6ddbOVjUHvdaKb0mCES+t0Bu8kKJePec1VUzU1rqBbXQJtZtfrtH4OJVp/HMIBCE 8lh1R+DNuuEcsYslyphtrvicfXIUpAIlNyZry22kmfAjhMCtcJ9dHSR8kox4PczOBPoY Ydlg== X-Gm-Message-State: AOJu0YwQslHGamhc75/YPFgcYuTRMJ8LCmVg5huZ10uyNv7/D/rpnM2w 5SdWQpCOqxWH6Dy1Wz6HQT6iC8tMbCuWDS19w+vbuCUChsEu2H7GguRJOu9TI/zbG+2QFFF/z9N rDzIE4pp4GCPYj9/6SRe1mJDtl8TcAbBZZNklNA== X-Received: by 2002:a17:90a:1082:b0:29b:b5b1:aaf3 with SMTP id c2-20020a17090a108200b0029bb5b1aaf3mr834125pja.9.1709899403813; Fri, 08 Mar 2024 04:03:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240308105901.1096078-1-mingo@kernel.org> <20240308105901.1096078-8-mingo@kernel.org> In-Reply-To: <20240308105901.1096078-8-mingo@kernel.org> From: Vincent Guittot Date: Fri, 8 Mar 2024 13:03:12 +0100 Message-ID: Subject: Re: [PATCH 07/10] sched/balancing: Fix comments (trying to) refer to NOHZ_BALANCE_KICK To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Dietmar Eggemann , Linus Torvalds , Peter Zijlstra , Shrikanth Hegde , Valentin Schneider Content-Type: text/plain; charset="UTF-8" On Fri, 8 Mar 2024 at 11:59, Ingo Molnar wrote: > > Fix two typos: > > - There's no such thing as 'nohz_balancing_kick', the > flag is named 'BALANCE' and is capitalized: NOHZ_BALANCE_KICK. > > - Likewise there's no such thing as a 'pending nohz_balance_kick' > either, the NOHZ_BALANCE_KICK flag is all upper-case. > > Signed-off-by: Ingo Molnar > Reviewed-by: Valentin Schneider > Cc: Dietmar Eggemann > Cc: Linus Torvalds > Cc: Peter Zijlstra > Cc: Shrikanth Hegde > Cc: Vincent Guittot Reviewed-by: Vincent Guittot > --- > kernel/sched/fair.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 84d4791cf628..f3c03c6db3c8 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -12409,15 +12409,16 @@ static int newidle_balance(struct rq *this_rq, struct rq_flags *rf) > } > > /* > - * run_rebalance_domains is triggered when needed from the scheduler tick. > - * Also triggered for nohz idle balancing (with nohz_balancing_kick set). > + * This softirq may be triggered from the scheduler tick, or by > + * any of the flags in NOHZ_KICK_MASK: NOHZ_BALANCE_KICK, > + * NOHZ_STATS_KICK or NOHZ_NEXT_KICK. > */ > static __latent_entropy void run_rebalance_domains(struct softirq_action *h) > { > struct rq *this_rq = this_rq(); > enum cpu_idle_type idle = this_rq->idle_balance; > /* > - * If this CPU has a pending nohz_balance_kick, then do the > + * If this CPU has a pending NOHZ_BALANCE_KICK, then do the > * balancing on behalf of the other idle CPUs whose ticks are > * stopped. Do nohz_idle_balance *before* rebalance_domains to > * give the idle CPUs a chance to load balance. Else we may > -- > 2.40.1 >