Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp272653rdd; Tue, 9 Jan 2024 03:56:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzNmftNsZ8Fsu+KDaTSe3rJ4VeOkHLWzQ1UbWhszNaqyPaNYlXzSKlPHY3GxeKf+kMURVq X-Received: by 2002:a05:620a:13d1:b0:783:2d6b:8514 with SMTP id g17-20020a05620a13d100b007832d6b8514mr939928qkl.90.1704801390627; Tue, 09 Jan 2024 03:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704801390; cv=none; d=google.com; s=arc-20160816; b=gMcUeLCu+Q+89ywRKQq3QCZKSA7fU8Eieox4uP063yxwMtqifU26HD8vwHOoBZXr+d inL1cn+XviwMUozHw0agzj3n5WcA+ANJYgcxBEGYiLHaHUcO8PsUWdpIFJ8dQpTLcXXr gAQOP0su8gUY8efKJRnMD3urgqDGgXaCUFvUu3zkyeAVXg4IdrghUK126nQX1Z5ZI1jF qCJ0GYAyua9gzZd9kK8xwf/Z6ohxJ8HcXPqnsIBDY+SJwty3G+aOWCzPRzuSlxOSD9an g5hCMGg9AdcOy6UODHetaTc1fdwEwvjofvWgV4dG+MN0UdJ5k7DOkzmi2mk7BlUo22j2 bo+g== 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=/U9K3vKkFfe5Y4lZ8FkXNs1ch41QZfrpxLt+FfUSsW8=; fh=t4zDb196vmVlAGg/vVIXs5eTLu5U3zv+hZGBkiqKXs0=; b=S8o0tZL3395xUkJlQDQ99ppwwcxDsHd2x5wBbeUSUwFXq/dJ/5BMnwgtrLidvFE2E8 FI/h8eyPqdiPsR2aRRsYsKfgHCompsWVaFqXRkwxx4RFC3x82PlzLgj1Ad3gGgQBo1y9 023pPZb/cLUIGC6bWtqgBi6uTHMpDIXQ3IvpwelYxVAX6rEm9j0dXLKfdNO4pngbbbXu x/b2uC694aZRaNyeg/TgmJyrT4IbR6Q1j4CcjYjl2QdH6YNnXr7wFta6XA4AbeeBO0Mb FFKg3EBTbIUd9OKhlhyc0b6gMG8OKPgHb15RFb2t4xhQRBXJP1I/EY4EOs1OZQ2Z73xS oKcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20812-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. [147.75.199.223]) by mx.google.com with ESMTPS id g8-20020a05620a40c800b007819c577ed0si2083320qko.693.2024.01.09.03.56.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:56:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20812-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 64CB61C23A7C for ; Tue, 9 Jan 2024 11:56:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0AB4374F1; Tue, 9 Jan 2024 11:56:18 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B0B6364A4; Tue, 9 Jan 2024 11:56:15 +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 209FFC15; Tue, 9 Jan 2024 03:57:01 -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 94ED23F64C; Tue, 9 Jan 2024 03:56:10 -0800 (PST) Message-ID: <0a64731f-f6fa-4382-a5cb-a29061eff2d6@arm.com> Date: Tue, 9 Jan 2024 12:56:09 +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 4/5] sched: Rename arch_update_thermal_pressure into arch_update_hw_pressure 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-5-vincent.guittot@linaro.org> From: Dietmar Eggemann In-Reply-To: <20240108134843.429769-5-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/01/2024 14:48, Vincent Guittot wrote: > Now that cpufreq provides a pressure value to the scheduler, rename I.e. that thermal (e.g. IPA governor) switches from average (rq->avg_(thermal/hw).load_avg) (1) to instantenous (cpu_pressure) (2). I rememeber a related dicussion during LPC 2018 :-) > arch_update_thermal_pressure into HW pressure to reflect that it returns > a pressure applied by HW (i.e. with a high frequency change) and not > always related to thermal mitigation but also generated by max current > limitation as an example. Such high frequency signal needs filtering to be > smoothed and provide an value that reflects the average available capacity > into the scheduler time scale. So 'drivers/cpufreq/qcom-cpufreq-hw.c' is the only user of (1) right now. Are we expecting more users here? If this stays the only user, maybe it can do the averages by itself and we can completely switch to (2)? [...]