Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1239023lqt; Fri, 7 Jun 2024 11:57:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUelTblX6Vjrcpp7Zi1kYJtdzPdVvA/jHK61MGXNi03cRPl9bijvO6PxnTIa/hqwZMbSzwcsexsdpqpChfsNYB4NaeQOEK2fES1Ou/SZA== X-Google-Smtp-Source: AGHT+IHFyy+bBcVrTerh16vyQGLJII2ancZVV0l42zueHhPRoMbFOBmHM/HtV5UbWKVU2YKexv+s X-Received: by 2002:a05:6a20:d491:b0:1b2:b559:3a1f with SMTP id adf61e73a8af0-1b2e77d03c5mr5357643637.22.1717786657819; Fri, 07 Jun 2024 11:57:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717786657; cv=pass; d=google.com; s=arc-20160816; b=oatTuJOBXWw2ACQHCR3tzFMhlAEkQ9BlUc0HJxAk5KSbcFrQjk4PD+ZXZGlnj4C896 AiAWxS1Y2l+qAEEnBMLNnwBjRnOaFalrVdjHGVna00UMGEN+stUYXWQTTsTeMA4udkJC mrpPgwxPjG73WuaJqu5s+R4saKOrK2riEgfV8ErqeA3yHIlxL32aeZcKGzN1tzhm3pYV 3azPDh3yjRpvtJzUe8Ocpjja0A6uKG85OET5gWzc1h7yga8iFMRho8GAoju82UKziqiL JGvgY6LpNSkUTNeJKB+mLH7y47GreBzJcvernBbY2rHhfaE4ZdTUK+MFrJyiQZJr7RUe Q7pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=WburajdbB0AzQdLRwOT0zT/LWWfkk8pVUzaCLzo/LYY=; fh=aBi2odX79MXfgPG+7l662eg1AEKn1G2Hk12dt5zR5Rg=; b=BezN7ITkwsp8vpheUirtAO3m7haFrxdGvBoO8GjiRs1g+Yq5VVkmk9xq7QOlH2vRPr f6ZgJUW7bdF7tzfoIcgviHryO7qAdYvgo0xzeYZnxbguo9GlQVcjP6CUN3FuoRTZtU9Y MHCWjuhozxAkdx5uf4AyAagIuYpI+Ebk8hK+EWi1BovEnzUGu1/kX8Aay1WKIJ9yU2t4 Bg4wgrdTN3ycdSOjjfCog24RtAM6eI2KxF1InJkxfMoIfkMoP/TiUp31Yok5zansvMzQ iobuexdHf1Xj6b8TyUpRqL3HnPLjW6KECsfV+0G8v5Javhkb4VZ1my3zQlUa1jml0RSu KrCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VdeN7wPh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206633-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd3af590si3477465b3a.114.2024.06.07.11.57.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:57:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206633-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VdeN7wPh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206633-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206633-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 898E828496B for ; Fri, 7 Jun 2024 18:57:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5AEA1459F4; Fri, 7 Jun 2024 18:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VdeN7wPh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 02D0F13F440; Fri, 7 Jun 2024 18:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717786581; cv=none; b=DynNNJ9OsNfQT/KVKGvyvwmzQbTJ6YbmMnwkT0LIpD6659Xwzckl3x9WUNF0dHvZKqQqmGB1WqyNTsxfw8aGp/Oi6Z6bJjeaNJAhMu8+NSbkHIYgXqhgOWNgUNa9vBCPiQN2MCG/udlMPdKPFvjeO+a8p5TT/5g38X8kPUUAtXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717786581; c=relaxed/simple; bh=zNWgpa9VXBHQ6K/ORcFzW8pPuEGTlF88v/NSUrhSNik=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CjKQXwlTkXyo95vF91zMPuLNJBTpoYzLF6mwkeC56UeWo8W5c1dDC0uugebcSCjxzNNVELabk56qP85D9ZFQe4fnLXq1Su8BtPkLMWeDx2CBYXTPFtZyrz3uZRpqMoowgSTwt+zbRBeH9dyQfT4l0aNHUv/01ndjhq5Y4brlf0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VdeN7wPh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89365C32786; Fri, 7 Jun 2024 18:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717786580; bh=zNWgpa9VXBHQ6K/ORcFzW8pPuEGTlF88v/NSUrhSNik=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VdeN7wPhFVJvSwlBdZ3Ii2k6lMz/62HnkZ/WtRZYJ/BOhlN4cQ9vIIrYM+/Oe4V1x lujLHNiAZh6v5o3lssfTzE8jfyQPHhZba2DK45xlTn12DIezO3LPaLpoYDkWSy+tnC mMHgKAXqFZCLd+ekxtU7h7WKXMR/nsSzrqxG5s2F0FQ9kaTTFK1cBle4BCWACB9kfQ AsReA195TueIz2iS//B/hv+h/AEy7Vy5qbpKiShl0+ljwCzo4hDPOrGHE7bQl/wsoA NWljPtvsL5f0lLzFLF05wslrBXTNFUqQZK3P9L3l/FHF/BDLEfIVaKqm2ofZyITyAz c+qsv0lFstzeA== Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5b97f09cde3so315064eaf.0; Fri, 07 Jun 2024 11:56:20 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUPb601KzUtWLAO8MsR7xj5roULXPqyOMVdEVWb0x3cfVzcca9aJtso47hibV70bCTHhMDgL0/Ldhcr9SPfGBL4I0fm2+jt8WEHxyaIajoSpHxmYf15pjVlFZaU8Ye5WnnKWtwIBZw= X-Gm-Message-State: AOJu0Yxwy9YpMiKk+/K8noKAXgXjyBpKYF9Nu4onrw9eQVq65dvooF5k u7dlbdVegGwTqG2KkoalwjropVCfOwPPRVbhO1co6dvdDJU6eH9g/Nx+6K9d8L5PfrT4rPYIxkw qir2L6ikxtxEWqId8CYuRUftDaJg= X-Received: by 2002:a4a:cb84:0:b0:5b2:7aa7:7b29 with SMTP id 006d021491bc7-5baae9ee8bamr3205096eaf.1.1717786579837; Fri, 07 Jun 2024 11:56:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <7d999005-4441-4b8a-b159-3d0ebc2ed9d9@arm.com> In-Reply-To: <7d999005-4441-4b8a-b159-3d0ebc2ed9d9@arm.com> From: "Rafael J. Wysocki" Date: Fri, 7 Jun 2024 20:56:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] cpuidle: menu: Cleanup after loadavg removal To: Christian Loehle Cc: "Rafael J. Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 4, 2024 at 12:55=E2=80=AFPM Christian Loehle wrote: > > The performance impact of loadavg was removed with commit a7fe5190c03f > ("cpuidle: menu: Remove get_loadavg() from the performance multiplier") > With only iowait remaining the description can be simplified, remove > also the no longer needed includes. > > Signed-off-by: Christian Loehle > --- > drivers/cpuidle/governors/menu.c | 17 +++++------------ > 1 file changed, 5 insertions(+), 12 deletions(-) > > diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors= /menu.c > index b96e3da0fedd..783b5d1dacdc 100644 > --- a/drivers/cpuidle/governors/menu.c > +++ b/drivers/cpuidle/governors/menu.c > @@ -14,8 +14,6 @@ > #include > #include > #include > -#include > -#include > #include > #include > > @@ -95,16 +93,11 @@ > * state, and thus the less likely a busy CPU will hit such a deep > * C state. > * > - * Two factors are used in determing this multiplier: > - * a value of 10 is added for each point of "per cpu load average" we ha= ve. > - * a value of 5 points is added for each process that is waiting for > - * IO on this CPU. > - * (these values are experimentally determined) > - * > - * The load average factor gives a longer term (few seconds) input to th= e > - * decision, while the iowait value gives a cpu local instantanious inpu= t. > - * The iowait factor may look low, but realize that this is also already > - * represented in the system load average. > + * Currently there is only one value determining the factor: > + * 10 points are added for each process that is waiting for IO on this C= PU. > + * (This value was experimentally determined.) > + * Utilization is no longer a factor as it was shown that it never contr= ibuted > + * significantly to the performance multiplier in the first place. > * > */ > > -- Applied as 6.11 material, thanks!