Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp445735rdd; Tue, 9 Jan 2024 08:49:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGa/IsGR3zkZyrdCOjxZkMo8OITmxxLQy90dEHiIr50la3v61/QAYdfjuROYtugB1/+nC/y X-Received: by 2002:a05:6a20:6a2c:b0:199:9cb1:bd0 with SMTP id p44-20020a056a206a2c00b001999cb10bd0mr2507018pzk.8.1704818979022; Tue, 09 Jan 2024 08:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704818979; cv=none; d=google.com; s=arc-20160816; b=oPjsgEDv/ptFhWQ40LccnLXu681cH1LsJ0IElUKGYuRHN0g8xn42LO5KGSY9+QaEs0 HPIgxzwOGbE/KNu/C7MWrpfyNhxdRTba/Qx78ZhCdGyeRDdXOTdW/bNX2DBd9DTlnB1Y sn0Gr/7Vge1O6j0vpWqgozvjWLm3AZo3iIE0CMNCOvbmHXqtWfmhr6FdPw993PJn9tln FAh5XgTNj4G51UCoVDywjp4HVH9U947wRn59TGqw5xVkuLVnmxlQ12u38JRKeR5eyj0+ JKAUI2Iv5axZREIMDkrfuckhcUF0tdHOYhycOlQeDffxMZIMyDNWqRDQEWcHGJ9cZXAM 3HLQ== 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=hiyd6VJPI5Zxh39SJKt5ZRPhiXfWiKDrc9ZXkvvAd9u6u5SxcuP+03JA1E5JiIosv4 ZWdP81SZQJ8kF/HRvumCPqkXbh7MIXWyvqAG7LvW3wUbRx1LM4Fm9+oUSdLiXKI2wP5H CxkScwEKpe+Jj/2Hs0+qPsvANN7ItVNd0Xf/rHwLKvglbhkBgWcTWFplujxMsFyBKZ8J djPcM7wd+77yTmZer+GF1q2FeBmcVZ5UA80ryEroY29/0ttUvJkVCfq5hhkVjEdy7D3O yffPYt6sUz1RCCoLlPirUelWZQ8HXcLfm8lI59YOUkljfxY1yJ4qdv4Gn4wLZCB12GX9 J73Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wKiRaur4; spf=pass (google.com: domain of linux-kernel+bounces-21127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21127-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 c13-20020a170902c1cd00b001d34798ca50si1719046plc.615.2024.01.09.08.49.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 08:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21127-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=wKiRaur4; spf=pass (google.com: domain of linux-kernel+bounces-21127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21127-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 93CB0B24FC0 for ; Tue, 9 Jan 2024 16:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 889223B7AC; Tue, 9 Jan 2024 16:47:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wKiRaur4" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 26FC63B287 for ; Tue, 9 Jan 2024 16:47:06 +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-wr1-f52.google.com with SMTP id ffacd0b85a97d-3373a30af67so3014345f8f.0 for ; Tue, 09 Jan 2024 08:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704818824; x=1705423624; 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=wKiRaur4B5Zh8VTv5woArDyYLSojDNZoLTgfHX1p7rrRdC6SkE23PuQmkLA/rbaFaV PFTfG0764exOzbOPx6zLhrP9aTB1JV2hKnoGaNpC9pY2SECe3f46ikE3vVzhsBzcuct8 mfz68HZODSpGOV5Q7oYw/jX+BJUFliu4HywyB5iJqGG0s1eS9JEFOGvl8LcRCewjkUNi FF0+kCGTbRQGTTawnkRXMjarBYJNWnLsOJ4RynZqH3IPN2C0KRbSOHXjbsJYqj3k1sIo szfMi4eMRn2eS0uVjiu7Z98GeUrbh92cktEnSGXrpEpUz86S8BDyNUgZTZ8GuTk7O2M6 FeBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704818824; x=1705423624; 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=l+SVR1GpEL9DQpa/L73eKb5cppje4veOCY9CvIHtT2okxyt/6Ko8jFuVw97vNMzvxe bvNv6tr4Kym3a7U5Aa3Khbm/YsftQfsTQYZio3pjeYg7x0h+5LJ0mknWRrpjmdGjLzWQ dEvNcswDymMUkz+P/EygfhWj6c+UsRQ0IXdsHGDUk63ejYKu6rbQ6d28XHNExsQcj5Gd aYMhQBlVDmSRhT38xF8jLV/ZKL7Gr2DlAk7KIa/bhG3r3puR05XZfRgg0N1LMKTX1MjE 5Tlv14n3njWh0VO8XdoIYlUTiutlZRATZetEkRKB04ni7OVrC7YaQJlHjp4LXjil3PGy +zrw== X-Gm-Message-State: AOJu0Yz6Rqk2qYdFTdBLw92/MyfQOeVMwpplNVAyaWocH+LOqrkdUUGT 7xkrhtMImBZybTfgEQ9hWMgz8Gojkhr1SA== X-Received: by 2002:a5d:6b02:0:b0:336:c403:56dd with SMTP id v2-20020a5d6b02000000b00336c40356ddmr399099wrw.150.1704818824462; Tue, 09 Jan 2024 08:47:04 -0800 (PST) Received: from vingu-book.. ([2a01:e0a:f:6020:378:51f6:d46e:8457]) by smtp.gmail.com with ESMTPSA id r4-20020adff104000000b00336a0c083easm2847845wro.53.2024.01.09.08.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 08:47:03 -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 v4 3/5] thermal/cpufreq: Remove arch_update_thermal_pressure() Date: Tue, 9 Jan 2024 17:46:53 +0100 Message-Id: <20240109164655.626085-4-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240109164655.626085-1-vincent.guittot@linaro.org> References: <20240109164655.626085-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