Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp638875ybg; Wed, 10 Jun 2020 09:44:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7uEKXQ/JGhPxH2T9RZDKchz4HFmhBxeIlFHnZH0DI9yHqRIaTODTFFrJI8aaZNaRIq/4j X-Received: by 2002:a17:906:365a:: with SMTP id r26mr4154970ejb.466.1591807486491; Wed, 10 Jun 2020 09:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591807486; cv=none; d=google.com; s=arc-20160816; b=P6Nj9uwEoUcMXLZquoRbcwwtyPsbn8P5++oG6g06IdJmSCA7oSzqmxYEHPWlZQ4/Tn q9941do9FZYcia/e+KyauNYjHneHhmYHFKdCp1J+7prDMu85aHRaK2utvTwVlnJ2Sy8C 1kygdUXxr1vHDlZ8XzxBfZ+Ye/fc/pKRJHSLt9xVZWCF7FYsi8e1r0vgIFgOxigzcSDG Cs4dJJODx2ZKdY+MmvbUfobsfh6xNbFxKo4Ehr2CPBuZ1BJGy+W98qwMrgO5qzKMnqFu CDfFatHqS/sWH4YMPXnPJ8WVD/dZGKV+vQTZ8iBjICZwuUX9bSTbAeTPzB+VE3VZNHsp uRyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hGRBzLYTvk6qctnbR0AAuYYEWEijsEhuh26BzXivYyE=; b=JR+6tUJIrcJIS5+ssfbmKNJ/y0CFPKp3L335jFYQsCpiDUUZDTnDmULFddFzxNo4M7 jcGr0E+jKd2ca6yXYWIJESbYSpYD9kSx53ewQtgx8M2hcCjSDF0TqbJmfCWz1vK2zNqf SV4JHpgXKg9LE/y5lBCG8ILJhsXtNQ3+G9jEDSzHSJegjYf1nTr59m6Yy2Jv00s8mxcv 6Qvw0GlN9bKXHSrlTwi52t2iBl/fJwEQKDEX7UpTrugV+9wzQi1Od2sSQTYrNCY+CIXx E5s2bmwhREqofcQptCb9UfaxoABBw0FqADlh5/ga3CPRbcHWW2NzLKF+h74XEwjpud4s UJHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RBaBacY6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si294169ejx.148.2020.06.10.09.44.23; Wed, 10 Jun 2020 09:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RBaBacY6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbgFJOFt (ORCPT + 99 others); Wed, 10 Jun 2020 10:05:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgFJOFt (ORCPT ); Wed, 10 Jun 2020 10:05:49 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61BB2C03E96B for ; Wed, 10 Jun 2020 07:05:48 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id q24so935532pjd.1 for ; Wed, 10 Jun 2020 07:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hGRBzLYTvk6qctnbR0AAuYYEWEijsEhuh26BzXivYyE=; b=RBaBacY6WugYS0bLFx8FhVLK/lGQtqsLHxgcfIUe0i8Q5Q3FrsltScAgEGzcjTc9nO MrUJtZbVgEK+mpUhPL2EiVF6gMarst7npIi+boALCPpr6M2J3dHumHCbjPEq/XQ4lreX 01frb//n2TU9S72m2DqUOKjveZw8Sshk5TkGCrWwQJFXlbTPG6WBbXfPzp9quQ3Fzeoo 2Z1uhwqIX1+zBVX6vYBfN8YtBAHTng/INiVYLkQaesZw6r2jo8xMTniTUiT9TyCUijb6 pIBAVhA7TFJzUkHy+AwF6quhYWWJaa3mMA1vdMiTQr+zlUVMx+nxSiU44Mcqx2Ms2r7A Oe2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hGRBzLYTvk6qctnbR0AAuYYEWEijsEhuh26BzXivYyE=; b=eFnlDzxple0/P4zGOPe/CxG3YUTYXHcknGxZMUNmQWOMY6csbw0L+7H9ARTIC0TnQo 26/nbVDuQAudA1bXDrgfOWp8t1W0h1GOpYyjxJ9gdcycBSYDldD9BnlGWYNI3nqvKdSu 6Wjhj5KbX2U581e67EFdbOH945o7YOdRPi7XQZVKnY6l0IIctDdPVTkuF53T5JpdJVne DZXAdC+dxDwIPDqfGPV6P2Ccizcnoz2zPVi3+gw0xz6S7k+BQip4UksinQcVuUWygaqK Rx291zOMb0bP7VAuYGtKvopDwMdJXGJ+b3ydMsDhmcBhnazYCn+7uOFj8od9rCN5yDXQ 0c7Q== X-Gm-Message-State: AOAM532RJGbc4cjpcnDr7Ehpd9vZS55m7kwxZkmSNTr5WV1UlhsQDN3b 73Om1Ou+lpeRm4rMa17cI9g= X-Received: by 2002:a17:90b:110f:: with SMTP id gi15mr3421975pjb.87.1591797947896; Wed, 10 Jun 2020 07:05:47 -0700 (PDT) Received: from localhost.localdomain ([133.186.134.241]) by smtp.gmail.com with ESMTPSA id h35sm5836374pje.29.2020.06.10.07.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 07:05:47 -0700 (PDT) From: Qi Zheng To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de Cc: linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH] sched/fair: Fix comment in newidle_balance() Date: Wed, 10 Jun 2020 22:05:37 +0800 Message-Id: <20200610140537.208712-1-arch0.zheng@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code is using newidle_balance() rather than idle_balance(). Signed-off-by: Qi Zheng --- kernel/sched/fair.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0ed04d2a8959..7f9c3245c967 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10434,7 +10434,7 @@ static inline void nohz_newidle_balance(struct rq *this_rq) { } #endif /* CONFIG_NO_HZ_COMMON */ /* - * idle_balance is called by schedule() if this_cpu is about to become + * newidle_balance() is called by schedule() if this_cpu is about to become * idle. Attempts to pull tasks from other CPUs. * * Returns: @@ -10452,8 +10452,8 @@ static int newidle_balance(struct rq *this_rq, struct rq_flags *rf) update_misfit_status(NULL, this_rq); /* - * We must set idle_stamp _before_ calling idle_balance(), such that we - * measure the duration of idle_balance() as idle time. + * We must set idle_stamp _before_ calling newidle_balance(), such that + * we measure the duration of newidle_balance() as idle time. */ this_rq->idle_stamp = rq_clock(this_rq); -- 2.25.1