Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1009963lql; Tue, 12 Mar 2024 05:06:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXD9pIZ8a++t6cwVGrTeoxbR/GslSwhwx7g7fCK6TRNQa6vwEmcPGC3r7fzco9CrWmJVNn9jnCBTfh3a3+5D2MzrtbsQEJOqdMrxkfOg== X-Google-Smtp-Source: AGHT+IGoOlMti/fCbtFsbrlFgKE/QKOm/O/pElIHh6YPkpPhNdcyF0xPcLVh6ZZ4q8je/w/tcm1t X-Received: by 2002:a17:90a:b384:b0:29a:998a:cdf1 with SMTP id e4-20020a17090ab38400b0029a998acdf1mr7811839pjr.35.1710245174308; Tue, 12 Mar 2024 05:06:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710245174; cv=pass; d=google.com; s=arc-20160816; b=groZM+Yhp5CIMCbPwCSBzGHAEntmUgfZZZ84iwY0TqBRfjH2LKtWmZEKulHeI6A/Z7 Ru9xHgVL5i3B/VaLoJ9bM3znmIer9BaV9Wn3sDYjYraTo+OvXCIUReqtRltTibjsWV2q XeycM/VdQvZBMbFZ2zklMGPRXlw3REUD2WN4WOVC+D9pxI2/Le1zgiBLYBrP/lbDQzKM aCCZh7c0JggzffL/UXjUObRfvIMIyto+0le95HbBHKur7DGmSmJA9+sG2U3smictl2RV g//P3RF8It2phybO06fknI4PPxHYV7KfOu8/MamqdtjUknzE01htvFADgftu8Xezll9l sONw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=rNVlftGwreDGZhV+WF0GbA5V8/eeGc6R0IsvECIa4ZA=; fh=KXMbp4dVRfrlh/fdrYZv+VCUZ8LZqflnwLTFNQfCxU4=; b=lV6WO1GX5Sune6ILCDhEbz2KMEHBODlbqVtYQNVK0OQZsfG9sR3zdOqMYx6eVBSUgQ Kx12kC8syHHnE3s3QDSQ/1iGhHdGy7c2GK3kuw5De7Fxs/6CibOh6I5PIh2DQQ8sc5Px 6lfC57tBro5YhMsWCkxLutFxFmzIzSScKYlxNWoMeo0i0Iu6cKNZPTo8up6LGOZSnJum JzwkY6QInRWL71F5vbsbsG2X4lY643LNNikE5JGm4pIoajYIqeHs2tRtvMFY3NxI4bFz He7npoL/6VkVByBW9VWvd3b0VVDJ425PWNE8n3kYiM5TbXUe3Ou7KR0VIiBXZkR0HMxh u2Ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4OXF0jcY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-100214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w3-20020a17090aad4300b0029bb297c136si6918920pjv.67.2024.03.12.05.06.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 05:06:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4OXF0jcY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-100214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B4D4FB242AD for ; Tue, 12 Mar 2024 12:03:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CE3C7D08C; Tue, 12 Mar 2024 12:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4OXF0jcY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZNb24sP0" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 121A77C6EF; Tue, 12 Mar 2024 12:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710244833; cv=none; b=LhkR/dJunOsVzsIYFibuWAKZBF+xO7QhdKGX7/nWvAgjjEhdonaYy96gXGrYcvT9hiOFtX3un2lgUhtNbkZTrLZzcTNErEuNkxvxfKjHiBMQZ6CoYVvgKakBKzQijBdT9Bfk7modDqjAPgCQ1zjL+Tk/YexfzgOIe+A5TpX6cfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710244833; c=relaxed/simple; bh=STNNV4G6PBt9KhZgP9Z/aCGpaRgbnN5ELpCvtYVD8cY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=krEOrRP4ofLsY8bAJE96UTkyinVMBGOaf5ozbfsiAp1iIR+7O3xcqlhdg51S+KWgPuu2M/X6xa2su/ZaASlvedO4ZrRRqBvOruuxIDWv9+ll64jeJbWWwqgx+OSODkn+HP6cOrHTEflKCpbPuu+NneIuQ64xv8b7S4lDaV1Iodw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4OXF0jcY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZNb24sP0; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 12 Mar 2024 12:00:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710244830; 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=rNVlftGwreDGZhV+WF0GbA5V8/eeGc6R0IsvECIa4ZA=; b=4OXF0jcYRKg13fUVknQVj3hhNS0zyVof8UHtmk1F5t6Q/0yR9/SL7UXabnkulkWMg3UvFv Jncq7ugWzNbGBY52+Z6wTEnVC5MYSsgnTA2TMkVxt8HvWRPEfHStjEoioWA4+RG9h0Gp9Q NSfnfbswiBShBCLO3bmV63veHgbBdIJv94Jn5j3JgZv9Gtw5hPzDv0hGWx2Ys9OuklFO5A p7JxeG5b07X+JevuskbjtNVlQ7s+T8xphVyWkhqbRznjJ4yl4Z6RCfB2RGZmZ5kBsiGWzt POk/v1TVYSgxzPKd2cKW+d/4K7v9gIgkTrWFdJhlGed2uERv6l0bXh6wZmV5dg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710244830; 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=rNVlftGwreDGZhV+WF0GbA5V8/eeGc6R0IsvECIa4ZA=; b=ZNb24sP0pjWE9QKUATEpSd3I/bfKdqTPRsAYIOqovH4SG/hiZj58G7MH4uI8sKsByW3Ya+ PbGMxZFTu/A53SBg== From: "tip-bot2 for Ingo Molnar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/balancing: Update comments in 'struct sg_lb_stats' and 'struct sd_lb_stats' Cc: Ingo Molnar , Valentin Schneider , Vincent Guittot , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240308105901.1096078-11-mingo@kernel.org> References: <20240308105901.1096078-11-mingo@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171024482862.398.8275371595697685705.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the sched/core branch of tip: Commit-ID: 33928ed8bde066316dc3cb6ccf7f74400073652f Gitweb: https://git.kernel.org/tip/33928ed8bde066316dc3cb6ccf7f74400073652f Author: Ingo Molnar AuthorDate: Fri, 08 Mar 2024 11:59:01 +01:00 Committer: Ingo Molnar CommitterDate: Tue, 12 Mar 2024 11:59:59 +01:00 sched/balancing: Update comments in 'struct sg_lb_stats' and 'struct sd_lb_stats' - Align for readability - Capitalize consistently Signed-off-by: Ingo Molnar Reviewed-by: Valentin Schneider Reviewed-by: Vincent Guittot Link: https://lore.kernel.org/r/20240308105901.1096078-11-mingo@kernel.org --- kernel/sched/fair.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 40b98e4..116a640 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9433,17 +9433,17 @@ static void update_blocked_averages(int cpu) /********** Helpers for find_busiest_group ************************/ /* - * sg_lb_stats - stats of a sched_group required for load_balancing + * sg_lb_stats - stats of a sched_group required for load-balancing: */ struct sg_lb_stats { - unsigned long avg_load; /* Avg load across the CPUs of the group */ - unsigned long group_load; /* Total load over the CPUs of the group */ - unsigned long group_capacity; - unsigned long group_util; /* Total utilization over the CPUs of the group */ + unsigned long avg_load; /* Avg load over the CPUs of the group */ + unsigned long group_load; /* Total load over the CPUs of the group */ + unsigned long group_capacity; /* Capacity over the CPUs of the group */ + unsigned long group_util; /* Total utilization over the CPUs of the group */ unsigned long group_runnable; /* Total runnable time over the CPUs of the group */ - unsigned int sum_nr_running; /* Nr of tasks running in the group */ + unsigned int sum_nr_running; /* Nr of all tasks running in the group */ unsigned int sum_h_nr_running; /* Nr of CFS tasks running in the group */ - unsigned int idle_cpus; + unsigned int idle_cpus; /* Nr of idle CPUs in the group */ unsigned int group_weight; enum group_type group_type; unsigned int group_asym_packing; /* Tasks should be moved to preferred CPU */ @@ -9456,8 +9456,7 @@ struct sg_lb_stats { }; /* - * sd_lb_stats - Structure to store the statistics of a sched_domain - * during load balancing. + * sd_lb_stats - stats of a sched_domain required for load-balancing: */ struct sd_lb_stats { struct sched_group *busiest; /* Busiest group in this sd */ @@ -9465,7 +9464,7 @@ struct sd_lb_stats { unsigned long total_load; /* Total load of all groups in sd */ unsigned long total_capacity; /* Total capacity of all groups in sd */ unsigned long avg_load; /* Average load across all groups in sd */ - unsigned int prefer_sibling; /* tasks should go to sibling first */ + unsigned int prefer_sibling; /* Tasks should go to sibling first */ struct sg_lb_stats busiest_stat; /* Statistics of the busiest group */ struct sg_lb_stats local_stat; /* Statistics of the local group */