Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6758504rdb; Fri, 15 Dec 2023 07:38:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+YFbqAHZtpUYOnenEKIUgQbs/egsB6jYC0qNPSp54zLEvJ+ffID19r9TscC2kXGODH5B9 X-Received: by 2002:a05:6a20:b712:b0:18f:97c:6179 with SMTP id fg18-20020a056a20b71200b0018f097c6179mr10489696pzb.118.1702654679835; Fri, 15 Dec 2023 07:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702654679; cv=none; d=google.com; s=arc-20160816; b=vfUv6h1Pza7FEiJ/6trY5ohZyOrQRhXpj3aEFO8Xnus9Z/Jr6fm5arrV28+0see7gV 9MGvw0QF32VbGPlets6osqPIdBxIeKWX+V2FMRFMFlRRWDPTNhywlvaXb26gYbeKOmEV wh8cK3mcPlS6RIkcL2IC2iunLuarfBIqwHDYZkZ0NS3VDPC760nUpcaQwSA95H6RWr2K pASIIQr0useSnd9FsffvZde5zlbi0OeKbBCM/ecdrA8sR4o64CIxUzEVV7Z9CbNp243X m1ZasW+h+17L2vY8eh+g+xo9EIbkmWqD5AT03USZf2kwq72/MrIewmneb0il3PdnXkHG K9Fg== 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:cc:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=VUXuC5XgNx/z0pZmRC1R87AatrEmQaezGoSLGTFmgVI=; fh=3Izlw6A0cUmPhGNTiond0avk6JbEmjORAFZ7dDWdUnk=; b=d7mVLOcktXyxsS39hX1gAH/G1hHGS/+d0d1M6NJMO+KrkPnIkWLkfdhgmmgkYHNKrc u/ShIucexpkFwDOY+kwaMOL5fSJU5tetc5an/0hwNg/3N5/DlmXN9atW+oMxrf6eoWxq 40SHV+KjmA2LBoo4mW+IclUrUEPissmq6mS32yuXZp6V2l9n4ht9UUGMTc6+UV2u8kXb H6lXvLQlfIrKhvqXBL6ujRn+khFhd4nniITzrSq3SYwetdezuX6+gr3gZ/m4QevwPldc EgqhIbHN7MBWk2Fu6TQOIoWK01gewaR8Nh3kiqU0EP/sKh7tcYP0/7yp46ZvfUMEInLQ pngg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1220-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 4-20020a631544000000b005b90e67f438si13161835pgv.106.2023.12.15.07.37.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:37:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1220-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-1220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1220-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 7C9EC284255 for ; Fri, 15 Dec 2023 15:37:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B6F73717F; Fri, 15 Dec 2023 15:37:51 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EFD036AFF; Fri, 15 Dec 2023 15:37:48 +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 B94FEC15; Fri, 15 Dec 2023 07:38:32 -0800 (PST) Received: from [10.57.85.151] (unknown [10.57.85.151]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5D6883F5A1; Fri, 15 Dec 2023 07:37:43 -0800 (PST) Message-ID: Date: Fri, 15 Dec 2023 15:38:46 +0000 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 3/4] thermal/cpufreq: Remove arch_update_thermal_pressure() Content-Language: en-US To: Vincent Guittot References: <20231212142730.998913-1-vincent.guittot@linaro.org> <20231212142730.998913-4-vincent.guittot@linaro.org> Cc: catalin.marinas@arm.com, will@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, mhiramat@kernel.org, rui.zhang@intel.com, linux-trace-kernel@vger.kernel.org, vschneid@redhat.com, bristot@redhat.com, mgorman@suse.de, bsegall@google.com, rostedt@goodmis.org, dietmar.eggemann@arm.com, juri.lelli@redhat.com, peterz@infradead.org, mingo@redhat.com, konrad.dybcio@linaro.org, andersson@kernel.org, agross@kernel.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, rafael@kernel.org, amit.kachhap@gmail.com, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org From: Lukasz Luba In-Reply-To: <20231212142730.998913-4-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/12/23 14:27, Vincent Guittot wrote: > arch_update_thermal_pressure() aims to update fast changing signal which > should be averaged using PELT filtering before being provided to the > scheduler which can't make smart use of fast changing signal. > cpufreq now provides the maximum freq_qos pressure on the capacity to the > scheduler, which includes cpufreq cooling device. Remove the call to > arch_update_thermal_pressure() in cpufreq cooling device as this is > handled by cpufreq_get_pressure(). > > Signed-off-by: Vincent Guittot > --- > drivers/thermal/cpufreq_cooling.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/thermal/cpufreq_cooling.c b/drivers/thermal/cpufreq_cooling.c > index e2cc7bd30862..e77d3b44903e 100644 > --- a/drivers/thermal/cpufreq_cooling.c > +++ b/drivers/thermal/cpufreq_cooling.c > @@ -448,7 +448,6 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, > unsigned long state) > { > struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata; > - struct cpumask *cpus; > unsigned int frequency; > int ret; > > @@ -465,8 +464,6 @@ static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, > ret = freq_qos_update_request(&cpufreq_cdev->qos_req, frequency); > if (ret >= 0) { > cpufreq_cdev->cpufreq_state = state; > - cpus = cpufreq_cdev->policy->related_cpus; > - arch_update_thermal_pressure(cpus, frequency); > ret = 0; > } > Reviewed-by: Lukasz Luba