Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp471261lqc; Fri, 8 Mar 2024 03:04:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUG0ses/wLk1c08ccumdfLK3YptaYKbuHndyX1BqQ/DT7Yn8C858CnET6jyoNQU0n7rypi1U8ubwJdolrBjfks0ZyuYatltPJo1cb4EZA== X-Google-Smtp-Source: AGHT+IGhLKd5TJU59nPrt+6DbtdcharJdcRY0YNiuydfPhgx7ciUIXC/Lhi/Jl0c1bEMnYQkbpjK X-Received: by 2002:a17:903:124b:b0:1dc:fae0:9073 with SMTP id u11-20020a170903124b00b001dcfae09073mr13801049plh.32.1709895852678; Fri, 08 Mar 2024 03:04:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709895852; cv=pass; d=google.com; s=arc-20160816; b=BApU3mXqNF2ooGzjT3w8gXM0TXg9RvTkWIpJ4KJkzxsi29rAM97mQHVjiwB4sQ7T8/ SMtihqnOcqRcmnkaUCp3pHqUE5iSxvR8DdyAzndLcoztjCZav96iDz5jH7ijn10dlkBT v196C+Xfn6TmH0DeKSyN08S41QJYGItvkIM7pM19lyV34TpmGLzsL0ml+5sz86hrtFWk 0SBX5INKLlwHXFrnnD18vVBJmbuYvdrskM8qN6NoukQY45LBn19QSHaJansk6TnxVIZ2 LKxw8eTIX9qZZtiYeslC4zFI25rXzXpsCXwvlHXAfMrwmrofoqu8EAptpn7MZqJF5KGF uPPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:sender:dkim-signature; bh=bEBAYWJaT1vEVYD8Qqh08dtRz0Ow84weCEvJx52ecWM=; fh=OcJXSzmkLDbgQwS3rZxaE49G8zF2FryOX8LPvjExb+Y=; b=y0+PULZqN068QS0FPK8/0OViDltHZRXnNZBQpDdiHdVkuEW4EQKmLzmbThPILNH1RW xGXpX8jRsDN0vxhb98cFYghzO+83d5jW8DFY5yNg7tHn3EnbV+ZJ5REWTfn0Ff18Zhgg LMJLnzr5JtnrePAL64EW6YZ9F1ef4+u0R7pN1vjH9W0zI46QVL3PPqQqPVRBZA5Prjjt EGWeKoM3Yh+9RCLDk7JjWrKVVK6RPwDOnorPWSd3bEaw+320hA3Ht08KTaI+xYL+QvY+ icw5zHXk2gnvIz/2S7eGlN4EGbR2zblOnmcGrmlmQSBXbdssvFRODC62f18WbmG5gZtv 46dQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lOaUczvw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n7-20020a170903110700b001dcb4ae953esi16042657plh.34.2024.03.08.03.04.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:04:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lOaUczvw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C7EACB221C4 for ; Fri, 8 Mar 2024 11:01:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 406F255C3E; Fri, 8 Mar 2024 10:59:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lOaUczvw" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 5FB7F5A4D3 for ; Fri, 8 Mar 2024 10:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709895567; cv=none; b=YjneXp6wEipgEeEv4A7E5kZNoohUcMeTHIKewUS8PWGdx3yv/+HesLY+m5MW+EhjOUMF28I2zIQTYT51B9mUce68yu7bKJOfeOfyOVXyBF0jNz4C+Isq128Zboq1BSTWJ9LtNasKcFTctiyHRUq48KynbExNK2720S+kJStkLt4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709895567; c=relaxed/simple; bh=ubt7kAoCJQjP71eh+xekBt691hX9l2wuKxynxUyQakA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=f7lzoQI8MCrK3vAJtAtD/ioV6mx7cVc66npLfUMLHiZMmZTGRG5jcviDiDYV6MimJHb1iWkF7Vtk2gVwJv9eRSNXen2WTF9xFA0a7YfCifMXTm8H+ahDFYhKfe+G5h6JdtHE593ODFHvtLRQ8hlCYcUU+E4Yh2ciZrwajuGMX7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lOaUczvw; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-412f1961101so16983595e9.0 for ; Fri, 08 Mar 2024 02:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709895564; x=1710500364; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=bEBAYWJaT1vEVYD8Qqh08dtRz0Ow84weCEvJx52ecWM=; b=lOaUczvwDt69QrrJM+3UAlPw2S2dtSG5vsxWmr/hTtIVd2XRyJ6m1qnTaUd9xIqa6N Uc2OdpdlAXAWwsdldoKiTnnPyYCTj8GM4eNqZPu/PG9i7Uopkg7/LlcZHIJbcFqFwEtl 5+ZpPXW9PpTzgBmtaAmcM3fiGtZKoJRHL2dxDjoWI7hngTPCP0MD/L9IOVEl9bsU5tCB A4niiHb7qs5puENqR3YEG/q4lvewwwSbLlk+3j9T8WmPYfJiKqQyj46oWVwHVa2XLoe0 ptHWHB7qL5kwkIaQmRbtJtT7t6WLyH+0QmipEXDVBEMu4SqkdowlL1I53tfVCf0CNWll Ra8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709895564; x=1710500364; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bEBAYWJaT1vEVYD8Qqh08dtRz0Ow84weCEvJx52ecWM=; b=a9IPg+BhRtSZopxjcJZIg76KbHeEfTWguFSlyQ9/Cli6Y5bntX5fRHD2iPT9QAcSiC fFWorOMuQmwz4xuBS+3w7AQcfUCa+7lCJOq0rJnmh+qCT4Cp1kzFm/kYAndyIdOhaCe6 4EtgjnAvRYdxrn0AOOwhQe04EOFxlWLOs2L4QPeAa/ohNpRdFqQlDAoVfqSmqNVoE7H7 XWcuvQB/pFdjfPfPjV1JVerLxQlzgC3CqFec/KxnI/9M7s1ONC+is+pcbHT1lXY4q0fI +lJSjOpN4mv9JpKnuDe1IdddGOf+ym4z1et2ie/HTx8Th7LUq2fvpLrpt/2pr5LImKqg VCGQ== X-Gm-Message-State: AOJu0YwNclhSotKgRMWi8NlxfJhMrxdzwsGpH6D43hSi0uWS807XW9Aq WoC9KTscoqI3kLuetkyH4Fv1HNuvcYOrHNULwy8mObU+WXdZnBZMUPiBva/BawU= X-Received: by 2002:a05:600c:3b89:b0:412:f196:1065 with SMTP id n9-20020a05600c3b8900b00412f1961065mr5918512wms.10.1709895563593; Fri, 08 Mar 2024 02:59:23 -0800 (PST) Received: from kepler.redhat.com (1F2EF3E5.nat.pool.telekom.hu. [31.46.243.229]) by smtp.gmail.com with ESMTPSA id g20-20020a05600c4ed400b00412f679bae1sm5632382wmq.26.2024.03.08.02.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 02:59:23 -0800 (PST) Sender: Ingo Molnar From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Dietmar Eggemann , Linus Torvalds , Peter Zijlstra , Shrikanth Hegde , Valentin Schneider , Vincent Guittot Subject: [PATCH 09/10] sched/balancing: Vertically align the comments of 'struct sg_lb_stats' and 'struct sd_lb_stats' Date: Fri, 8 Mar 2024 11:59:00 +0100 Message-Id: <20240308105901.1096078-10-mingo@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240308105901.1096078-1-mingo@kernel.org> References: <20240308105901.1096078-1-mingo@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Make them easier to read. Signed-off-by: Ingo Molnar Reviewed-by: Valentin Schneider Cc: Dietmar Eggemann Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Shrikanth Hegde Cc: Vincent Guittot --- kernel/sched/fair.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index b567c0790f44..40b98e43d794 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9436,19 +9436,19 @@ static void update_blocked_averages(int cpu) * 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 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 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_h_nr_running; /* Nr of CFS tasks running in 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_h_nr_running; /* Nr of CFS tasks running in the group */ unsigned int idle_cpus; unsigned int group_weight; enum group_type group_type; - unsigned int group_asym_packing; /* Tasks should be moved to preferred CPU */ - unsigned int group_smt_balance; /* Task on busy SMT be moved */ - unsigned long group_misfit_task_load; /* A CPU has a task too big for its capacity */ + unsigned int group_asym_packing; /* Tasks should be moved to preferred CPU */ + unsigned int group_smt_balance; /* Task on busy SMT be moved */ + unsigned long group_misfit_task_load; /* A CPU has a task too big for its capacity */ #ifdef CONFIG_NUMA_BALANCING unsigned int nr_numa_running; unsigned int nr_preferred_running; @@ -9460,15 +9460,15 @@ struct sg_lb_stats { * during load balancing. */ struct sd_lb_stats { - struct sched_group *busiest; /* Busiest group in this sd */ - struct sched_group *local; /* Local group in this sd */ - 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 */ + struct sched_group *busiest; /* Busiest group in this sd */ + struct sched_group *local; /* Local group in this sd */ + 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 */ - struct sg_lb_stats busiest_stat;/* Statistics of the busiest group */ - struct sg_lb_stats local_stat; /* Statistics of the local group */ + struct sg_lb_stats busiest_stat; /* Statistics of the busiest group */ + struct sg_lb_stats local_stat; /* Statistics of the local group */ }; static inline void init_sd_lb_stats(struct sd_lb_stats *sds) -- 2.40.1