Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp317403lqd; Wed, 24 Apr 2024 03:22:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUXuDXeir+4ms3H+g3NKYIm/P8+/u+2/RHN+Q/oEEAIl+rQk9+gpACcPbZ22Jo2NIL34iC36oMeiDUzn0PkZXWhbUogpSoJOzRD/LbpA== X-Google-Smtp-Source: AGHT+IFS4jlb4q9Wfycc4Uk9dkDc9ivkdm4jDK8sHs5Ir+gF4BZ7qyKgXyN2KyKcxQOovVHrA3BX X-Received: by 2002:a19:9118:0:b0:51a:dcf4:5b2a with SMTP id t24-20020a199118000000b0051adcf45b2amr1624692lfd.56.1713954170489; Wed, 24 Apr 2024 03:22:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713954170; cv=pass; d=google.com; s=arc-20160816; b=y7FO9CWzTeeQaAncSa1tUTR0g/UDgT/lckrozHajhJ6ymqdegaSHcU/adyfZzrkr72 z8o1eQlVeg6pOpHxkUF+He4xxI9nQArVFIgC1v8UEemqDKqc9k9aPcoTN8IA1uhctz3/ mNtJBiIrGwBWiJYoTSA1z2p3LGQY58yCYdGnU9036F0C4TjE2AW3UVQnQti9KLech20s guCLd+0M51OSS9/6SjIJ78DL3L2hLC9zci/LYsM4CHfWGWZrf8H1B7kJWBvcQnh0uhp6 OAgoanAYL5CNp8YqaN03OuViCv27wSYG1OIqIQV9A6klDvlo/Q6imbvpz2gkhYWBhigl ORWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=+ib9HlOEBMAxYA9OB0lAjuhLkPfnfgx8pWvopuOwFSQ=; fh=x2l4d+2x2d+iQyQgFcW6A4GTXiihtfCTKneWgtVKHZs=; b=ISTwbDHkTPVOBrOjvcBcctRxSuhAt/5dVyFSGlzmq4WCRSgNA74xhBaERKmQaZhWZT KH0QJsv8J1onmI/Ga0qC6CukixU5B3PDb7Nw/cFIB1MI/dZ+UNozI8Emasa0NGiyaw0n 4FeeSIWoarGryZ/MyHA1jh0Ncn+si2EYUi791niV5fCbTwgQet7TkKIzuIoOHIrO9Iy4 UIGA4koMOvryeWvgbdcztPEgX7xH9uVUXCS/w/Y4nr3YSj8re8SVo5qfbrPNxm2Rf6Oj MLElqcKcXD7CRMeEywlAeC83p6pfVkrsvSBSw8N1UJGRWWvXcxOVb38dbeBJ9mkAPWmO CZjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rA2xWRWl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-156714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id du12-20020a17090772cc00b00a55be79d8edsi3602545ejc.80.2024.04.24.03.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 03:22:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rA2xWRWl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-156714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 37E021F21CB6 for ; Wed, 24 Apr 2024 10:22:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CA7D159915; Wed, 24 Apr 2024 10:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rA2xWRWl"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hFd+iLM0" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE771159572; Wed, 24 Apr 2024 10:22:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713954139; cv=none; b=on01fJw0GH4yu/aemXXeW4F8Nb3XWPOZ+IrG+lx9wpn7FwMeEvyKxcyjTFAJghh/X3qQrJ/aXCqtpYR9IiZzy7YMqeOZeeqNYB1mieTYi6pHz/2Jz5JE8vn9M5uqhkgXQkmUYOl+p0E0IuBq1v41NOoahh4q5eoRvfPUmTnQEu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713954139; c=relaxed/simple; bh=UTlW9J8REYe0N/IbNnYbHKmHOTqxCm4XrHhokwPl6Ts=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=WXRY8SD0UivsWj3i9AzsS6FmLCkI4eUuQFfddEh6s2I0Mk68PiSaYCb4W0LoxalqMN9nXCJVzDYjofHsi7COCVK4Hfc9y6CJMWyrvQArS0DDVFvkOKcZhomkpByFW2Xu1QrUZlwLCG+FEMVxm+NeYqtlV4Hl39WLZgNHdekeEoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rA2xWRWl; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=hFd+iLM0; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 24 Apr 2024 10:22:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713954136; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+ib9HlOEBMAxYA9OB0lAjuhLkPfnfgx8pWvopuOwFSQ=; b=rA2xWRWlikBuxS+H4qQxYVm0x3qkOqsB5WmnAv0k4RKF1ihTuagpGHEj/zgGimFe3d3gwU OMPDM4dTPr8bPLPdMJb3xZJBazPWZgK3j4P+Ph8pClVTnTe86Sboz1rUrPwzdExxL3IVxw dmd5aK6xuu3sI80KYFHbNrbMD8CkA2tL+djXRqwUG4Dp7WIsJqlwQ8fGmp8q8lEP2JlnxW lbuNl5R8g6amNupPnX60DvOkng10c75RvzKp0yIoLpb+m2votCrc4QGdzhoTQ85J4a6vIY 13pvh2xn9QbCEqjwNhuYBQmyrGDQveOpKmz2ZmkGq7ER29ooNTgDk7IP9H1cnA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713954136; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+ib9HlOEBMAxYA9OB0lAjuhLkPfnfgx8pWvopuOwFSQ=; b=hFd+iLM0i4WpKF4ukodbUBRQHbEWWExtbdVcQLrRbYuyZGHZUzjqDQMePo44EEXqyVsZAq 0pydv0gYvDmhVQAQ== From: "tip-bot2 for Vincent Guittot" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] thermal/cpufreq: Remove arch_update_thermal_pressure() Cc: Vincent Guittot , Ingo Molnar , Lukasz Luba , Dhruva Gole , Viresh Kumar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240326091616.3696851-4-vincent.guittot@linaro.org> References: <20240326091616.3696851-4-vincent.guittot@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171395413551.10875.5850326292682493077.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the sched/core branch of tip: Commit-ID: c281afe24fc51691e65f59ea66eefa14cbdfa0e7 Gitweb: https://git.kernel.org/tip/c281afe24fc51691e65f59ea66eefa14cbdfa0e7 Author: Vincent Guittot AuthorDate: Tue, 26 Mar 2024 10:16:14 +01:00 Committer: Ingo Molnar CommitterDate: Wed, 24 Apr 2024 12:08:00 +02:00 thermal/cpufreq: Remove arch_update_thermal_pressure() 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 Signed-off-by: Ingo Molnar Tested-by: Lukasz Luba Reviewed-by: Lukasz Luba Reviewed-by: Dhruva Gole Acked-by: Viresh Kumar Link: https://lore.kernel.org/r/20240326091616.3696851-4-vincent.guittot@linaro.org --- 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 9d1b145..280071b 100644 --- a/drivers/thermal/cpufreq_cooling.c +++ b/drivers/thermal/cpufreq_cooling.c @@ -477,7 +477,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; @@ -494,8 +493,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; }