Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp2381457rbb; Tue, 4 Jun 2024 03:55:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjT9COwlWDB4KDPZOBwlIvURzcFwIBj/tByS1Mtih48qXlus3cFmZjYfIQ3vQoYNQDge5bmw5N5L6gkr3V+Rcppp7N2zT805VvGKqWBQ== X-Google-Smtp-Source: AGHT+IFnWf98X6nUtrdo5Mp8fshOrHStsYJMXV7Rq8R1RYVD6J+/B5LntJDWD7wppb9EUlsTbpOT X-Received: by 2002:a67:ef94:0:b0:48a:3061:3e4c with SMTP id ada2fe7eead31-48bc20f3595mr10668025137.7.1717498542481; Tue, 04 Jun 2024 03:55:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717498542; cv=pass; d=google.com; s=arc-20160816; b=snzZDIKWwvED9KVR7PNzv+nC9P8nBK5/rrpYBGqawHebrRwWDLOXV6i1vwAmHFTvn1 t4nwFc3zxo9LhqxiMytO/n6d4ohbWl96IO2vVR08nh2vRMuAZEBcQkG/DVY+YJnTB954 g5ltmBlBqzBwyPWMq33sP6qF7zt6GbyiP6MP30+AGwpOKsbU3VcCwjbsEv7XBp//gzjx C1iAQYQMG66Lz7wVeZ/TOmeJN7mdijkyIg00L6jpa3Ltgk3nzmtIHDuAVyYDCUfNZ9S/ mmBlgj/Taur9UPNXGVOvj44MlNFLpf4iiHNXjhKdcmw+fzhUfPvjpsxqan9vRQoCp0CC Oivg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=qC1SaEjpQ2woWZP/vaDMYW1PdHd5Ev1eHB2xNWA9dm8=; fh=RckUSS2BpOIuqI0EgVyzaeB6rJNRMhRYdoNmFJv4Q5c=; b=a1Sz1CppMIr1hVhgXs/AInaomNe2yI+ZhdMd+3jGyu8lpY6Ez6R0N7MtFS7x/DIWmg ahIykEZBGQjz6cTcFntumIZc8HDkTeHp8GnACTBndmDpbt6jPdFracOSsFG4LUB861Eu csyWomjkSqvIKsQEFef1zm2DS9qjjcoyhVCz1peB3+TRslyKX2nKn0qV3GBn8eARmxMh aQKaN6HEbenpVFYCoDE7n9P49CXoT+Q0eOwE4b3GAhI1XNkwh+dYVbuW/IhXsIjWPqmW ZVXS3sh2cJTLF7gfWlzCv6IZfHlillpVxtFnI/3VTyFLmh0VCBHdjjDmaOJHS9BgNgs4 TQWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-200477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7951c215729si72956485a.97.2024.06.04.03.55.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:55:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-200477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 356E81C211CE for ; Tue, 4 Jun 2024 10:55:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0F39145343; Tue, 4 Jun 2024 10:55:34 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BA8B1420D7; Tue, 4 Jun 2024 10:55:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717498534; cv=none; b=fT4aM0ggkRxZ5nu8ejG59VmV9LhuE3/1ntkc+XE5UlYU2KNa64/PbuIFKHGAhLF0gn96cug3xHzE7YLJ54G9VgiVyFJ6Kg/jSkdXnViOb9qZpARuLl6dY2Jyi1D5Rzx4a7WvtGPZA8M85/q3REZwkCLW/4m5/YlmLCHF6CuLT8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717498534; c=relaxed/simple; bh=IrjdiA7OaHvk1+r0fXbwOcNDCdU3k5R6FBB2dr831vo=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=W4N2g/pRaLh6YkQw1cZLZzLH1kT3KvrdD/5ZuEeN2hC9nJyjwJm+4FMQQuxY6QJTBvXqhjPmOblaJvwY+tEARfRNbdPhgEOUBh2/Zys9r5+3S2g7yupC0QlUHhj5139IArGSZavKNfBplKqmPgOankbcM2XXwuqwRD/ymQuvxPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 66FBC1042; Tue, 4 Jun 2024 03:55:55 -0700 (PDT) Received: from [10.1.38.30] (e127648.arm.com [10.1.38.30]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6FFE73F762; Tue, 4 Jun 2024 03:55:30 -0700 (PDT) Message-ID: <7d999005-4441-4b8a-b159-3d0ebc2ed9d9@arm.com> Date: Tue, 4 Jun 2024 11:55:29 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, "linux-kernel@vger.kernel.org" From: Christian Loehle Subject: [PATCH] cpuidle: menu: Cleanup after loadavg removal Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 have. - * 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 the - * decision, while the iowait value gives a cpu local instantanious input. - * 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 CPU. + * (This value was experimentally determined.) + * Utilization is no longer a factor as it was shown that it never contributed + * significantly to the performance multiplier in the first place. * */ -- 2.34.1