Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp259731rdd; Tue, 9 Jan 2024 03:24:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IH24WsVz+OLGmNovMpfyat2BrwBtG/mBUr0D0DzT6pcyNS1Vt3Zf1dHRNmXuFLfZ3FXw2bj X-Received: by 2002:a17:902:e786:b0:1d5:5955:203e with SMTP id cp6-20020a170902e78600b001d55955203emr582686plb.32.1704799481468; Tue, 09 Jan 2024 03:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704799481; cv=none; d=google.com; s=arc-20160816; b=bUXPb6A5/e3yuBJHNRaPo3vFtZGf/uqaGML1PJhxNvcIMFFcX9bJkSHePBsLakOeJs T8p9fSVzAAAR1soGFgJhS1JRGTjMEdFB3b0aEv5fMdqYXmrFRkMGgj4gwT2bpKC+Wz2z iQHt5aUa8AUafaGQIx9UIs+Uzzkpqbp8E4wwSgB55Rkgy7rysVruQbK7MQP7EY8tZwQS A9iaFOCBaSPtdlQND3pYYwLeDqH4NL01iwJ4BuREuXiqZ2N7gQKO6N2YstDXCAapNH9R CHzgXXgEp6LnWoPz17eb1+UU+igUunsi+bXxseJ4Kb8CLs0l+qEZExB7b263o+dQqfpL 9N8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=9H+yX2tV5dSiw37tv/Q/kyZaD3m+h2N9hmgras23S7Q=; fh=t4zDb196vmVlAGg/vVIXs5eTLu5U3zv+hZGBkiqKXs0=; b=FYR2S4/Ph0fdzwV4/tXodlZLZ1XsTFdwdrSNqFWTbtJYeT51ENYfFIMISSlNppU6Xm SaI5gSndxzp0sIaEP1XFty2F59nR8uvJwcEn0c1h8R+SQWBW5u0CJXjWJQBBg2Z/LqwO y7RaKk1u7OskH/blvzTOqC+vYRgfyw4BChUYKbQJtEyx3385TAgGOBY3UBAXFqiorvm5 yc2Qcgj9wHkazEbGW/R+SryWSRxNo5wwfUlOxf7smr8Ty9GjP5D0CnVn/NvWskGJMlIg 0nUdK7Z8tugtmHwAHlintvBnZ85oX5cXVDZxYIi8MicdXf9cD6AnrgmW9f9GeO+Jmhtu 1p1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j4-20020a170902758400b001cf5d537eb6si1353895pll.190.2024.01.09.03.24.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:24:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20763-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2A9E2287377 for ; Tue, 9 Jan 2024 11:24:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF496374E4; Tue, 9 Jan 2024 11:22:10 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CCA736AE7; Tue, 9 Jan 2024 11:22:08 +0000 (UTC) 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 0DF4FC15; Tue, 9 Jan 2024 03:22:53 -0800 (PST) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ECB5F3F73F; Tue, 9 Jan 2024 03:22:01 -0800 (PST) Message-ID: Date: Tue, 9 Jan 2024 12:22:01 +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 Subject: Re: [PATCH v3 2/5] sched: Take cpufreq feedback into account Content-Language: en-US To: Vincent Guittot , linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, sudeep.holla@arm.com, rafael@kernel.org, viresh.kumar@linaro.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, lukasz.luba@arm.com, rui.zhang@intel.com, mhiramat@kernel.org, daniel.lezcano@linaro.org, amit.kachhap@gmail.com, corbet@lwn.net, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: qyousef@layalina.io References: <20240108134843.429769-1-vincent.guittot@linaro.org> <20240108134843.429769-3-vincent.guittot@linaro.org> From: Dietmar Eggemann In-Reply-To: <20240108134843.429769-3-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/01/2024 14:48, Vincent Guittot wrote: > Aggregate the different pressures applied on the capacity of CPUs and > create a new function that returns the actual capacity of the CPU: > get_actual_cpu_capacity() function name scaling (1) arch_scale_cpu_capacity() - uarch (2) get_actual_cpu_capacity() - hw + cpufreq/thermal of (1) (3) capacity_of() - rt (rt/dl/irq) of (2) (used by fair) Although (1) - (3) are very close to each other from the functional standpoint, their names are not very coherent. I assume this makes it hard to understand all of this when reading the code w/o knowing these patches before. Why is (2) tagged with 'actual'? This is especially visible in feec() where local variable cpu_cap relates to (3) whereas cpu_actual_cap related to (2). [...]