Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1634136rdb; Mon, 8 Jan 2024 05:50:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgztOJsF6r3AhmU4E8xr3KpHvDluzogtmjz562qLkrflRnxyBpdXYQ2JCupZJAVTnSek2M X-Received: by 2002:a05:6a00:391c:b0:6d9:bad6:52e6 with SMTP id fh28-20020a056a00391c00b006d9bad652e6mr1441534pfb.23.1704721819257; Mon, 08 Jan 2024 05:50:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704721819; cv=none; d=google.com; s=arc-20160816; b=BK2NkLF+Ul+3q5lSo5r+RRflUwRT/x8kD2s3WT3V1tLnnzD3c5lHfrVyKaNGPqbVtp YTg+a1oqaCl01opFh9N6dDL4BJCNDHfTLj6nW3BktHEjvtCNTpICtaGv52HvtE0Kmk7r 9wsdJh2tf93BcqbcwlHDtINaga5iePUsZDdAnewAk6vmqKEORPFTjueBm50a4LgiiHXS y8lxdTrxli22eCC5aigTbdEr7z6LG69FH9Hzil/K0xQPm0QYwdO2qQHiokL09V+4R1gW 9GHNMNUUUUFuyAKYTF8ZVgX8dNKlN7B+Lu9pcemqlbo3l4ky18DbD+T0scboXrvIp53h y5sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OJN21V1bop2AoQQK03hl+NSFZtBSAxp4abYemrkmzIE=; fh=ckb4uIHbQxCINhPspZAm7nYFj+6K7jiYA7oZvU68Qj8=; b=ggaa2u9UhLtbjhZ7mLx/0SoAWWfvGU17UqI/YLKRJGyfNhssFkZuoNkQwfAdAn2Wqf y2Tg8nnYfe+jULLQF2UhMDCC1AzHuESRLA6mI0kmoWsUOECLvbZcvfjc/RL5e+X9Ui8L eLN1wj6S8UHDiXA2J0uCINQaWwNGR0VFsz+G98q45gh4TdanVX3a4+HcR+meZpVZYudr Xm87dIUt+Ryhq24I9l+CSOMudJWBQ2khcFfO/5zbkXL0YiuLF937j8Eak37tEYa1hnGk q2WiXC5Qy+ngegAw/EwxM1AJXi01QDnjso1RpJJb9FJzpeh2uNnMDR3SXzN5ktP0/0Cp wHnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Em02rRXn; spf=pass (google.com: domain of linux-kernel+bounces-19646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c7-20020a62e807000000b006d6f98a58a4si6138329pfi.255.2024.01.08.05.50.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:50:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Em02rRXn; spf=pass (google.com: domain of linux-kernel+bounces-19646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4B6AFB2215B for ; Mon, 8 Jan 2024 13:49:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A51046456; Mon, 8 Jan 2024 13:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Em02rRXn" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8F0945C06 for ; Mon, 8 Jan 2024 13:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40d6b4e2945so23412225e9.0 for ; Mon, 08 Jan 2024 05:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704721731; x=1705326531; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OJN21V1bop2AoQQK03hl+NSFZtBSAxp4abYemrkmzIE=; b=Em02rRXn+3J9jMD/AppbzoJ4QFqjU4oxQ7S9qiP7GNly4hMlL6HXTw+PDG8PZdPwpX Pw9ULyi7lj8nOFoez6LJTloSU5oNO1RDwCWGP4H04TZ2fhivlMbDqe32ej8dxmQ5KDOb 2HfHaI8qswLT0khu7VtQwkWIoJowIxzdaWoZozj0S1LR3lIAeYd1Z/C1nkWCQ931XWGO p+OPCnLNYXmY+lwbpMIe5oASDFBN8Ya8PMYNYeYs2yZn4ZsdXVZ75MyJjoqli4+hwr1+ 0gdycFVRfJ2sltVwYK3a7CY6nz9PtegqFigvY1Oh1f4Wrfs22bY2Iuo0CPDvcYKZMtNV 7DlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704721731; x=1705326531; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OJN21V1bop2AoQQK03hl+NSFZtBSAxp4abYemrkmzIE=; b=qI0N56pm8GWAI1+WGK8IKYKUxOEswFfonRBvMTYwhGgLVI9zDx6Qa7SvalJ4zh7lmS 83y0pXJzjNpuoU5g1MvlWXS0rCPjF3W1ia28vVzsn7KKpd/lnOl86ZUFlHiBp+1Svg8e SWdlVeInRDCyu570iGeKhhp129gmnljtE8sQFgSY4nHp6J5uo+d/rJFLEy7Li65KJVlF xnxkvYBNV+k67WravWYHiGyo7crgXPSAikSGsc84ZkkMiXuxC61eXaXIJk4Ia8s4+sRa kvZd1rHAwkPlvwx0yUBX1OoEV06qGSwXG+92j6wC8KR0x6EFoe0pyxL8mVxyasfvBLEb 9tWQ== X-Gm-Message-State: AOJu0YxCWrXM/rbbHSxH4brhzXWV1O2W1NpTjM76fAq/0+WcdHs7q/Ub VlCOeG9QskXXUbvBYrrgZybLeEdvgsTltA== X-Received: by 2002:a05:600c:601d:b0:40e:49c7:aca2 with SMTP id az29-20020a05600c601d00b0040e49c7aca2mr220462wmb.146.1704721731089; Mon, 08 Jan 2024 05:48:51 -0800 (PST) Received: from vingu-book.. ([2a01:e0a:f:6020:53aa:59bc:34ea:bb2c]) by smtp.gmail.com with ESMTPSA id n34-20020a05600c3ba200b0040d5b984668sm11165003wms.9.2024.01.08.05.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:48:50 -0800 (PST) From: Vincent Guittot To: 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, dietmar.eggemann@arm.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, Vincent Guittot Subject: [PATCH v3 3/5] thermal/cpufreq: Remove arch_update_thermal_pressure() Date: Mon, 8 Jan 2024 14:48:41 +0100 Message-Id: <20240108134843.429769-4-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240108134843.429769-1-vincent.guittot@linaro.org> References: <20240108134843.429769-1-vincent.guittot@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Lukasz Luba Acked-by: Viresh Kumar --- 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; } -- 2.34.1