Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1784771rdb; Tue, 20 Feb 2024 07:02:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXd7aAKiQGoiJw9GSSlZJ0rvuVn1wGWVoCeFwNfmTJPgHTsOb2DmnzlC4xL7MjvWtNeumpBwCfbAT60DV2UGkVhjq/i/CzTLqMZ4bjDtQ== X-Google-Smtp-Source: AGHT+IFJjIeNlCSxmRMzUIxzwgZWuczBnTVTV3PvwyZIgxBnDN+2tjpioNTk8OsRjV0SvB+g5IzK X-Received: by 2002:a2e:9049:0:b0:2d2:3758:8c2a with SMTP id n9-20020a2e9049000000b002d237588c2amr4082597ljg.9.1708441366758; Tue, 20 Feb 2024 07:02:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708441366; cv=pass; d=google.com; s=arc-20160816; b=QEQsCZzfEmwbGhY8A2NU7fs62u4IRQ0p68X9bqa5osQOg6zp51Red1jWOZxx3LwASl WGXTuUkfJTELk9W+AT5HTIonsSdfg+5MhJQBfLDzW32rMmO9Ghz71ibBlxfaX1i+4zN+ h5yCzgNvKZBp4Dp2yaBXbhNE4bFbXblmFYtZHLZb9pYajmVwdDkzr+rx51Sx0Uq4ikBA PX8TTpZL24/cTLFqzf8Ok4zi0WOx8/fHtQwA62dLWe4hwNl0c+zryQkEio+dt6DdCTmu 68dygpMAxkBAELf1sMpveY2nKXE8nUaQ7cxVv1kJxbL6v3LomCvwDvnlvkuU7p6eN2Ob 0ECA== ARC-Message-Signature: i=2; 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=HMh73ETT6sAAQTM8/jnO/eb7e8vrDmANOkWhacVrGA0=; b=vE3x+nr9NNyXIvf8LaOk4x1tfiFUOyZVhdfaai+jcDLrKztFXQdWNlfQfQK0yJ9JwA HmuY/++LSfKspT5xX3q2ocRPbyWPudFagh05nhs02L6DmQ/kTupo+9TswMvcScHRDayx c0/JJTfTdxMs+4EvHdA7zX5b8sy8NtdUDg7/fc631mzUWoGJusJPEgmvT7HMIVg3yA2s YQqQynObqWVKZ9n1Vtxu9z4SewSTXd1wZOKBTeKZ0qbXPU5JZJtH+qZnYHgkAJc3m2Ew WyKFG3I3PXi59ncNVJSHx/Vzt6x28pQj5mEHvjb1TP1V6dJCcm3RNe5arbaLna7OMLyS 9tig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=znmVRaGS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-73208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l13-20020adff48d000000b0033d1337e23asi5276822wro.336.2024.02.20.07.02.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:02:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=znmVRaGS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-73208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73208-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D3B1E1C2420C for ; Tue, 20 Feb 2024 15:01:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 825F1762EB; Tue, 20 Feb 2024 15:00:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="znmVRaGS" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 D05B474E3E for ; Tue, 20 Feb 2024 15:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441203; cv=none; b=lduAQxiFyqZI3Sr5fh/42Fb9HFtoA1PTEe8sI0Ubqy5tKfHMuA8oF2cyG+jCIqrq2Qu6I1dULDkGlFLHU81V7qIiAQ8DYcmhboyzXK9bTq4IfZD60+T8EgWR2IUN27Rz2gCzYIMXG98IQRIlGudL4ACToDvu6V2lkxXZWMl7z4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441203; c=relaxed/simple; bh=RkjU3Ub4ClpkOSSOEN84+hu/XY6PSH0IWTUar1yt9s8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pf1weQFFkaJYawTplTwa0nQ5wONqULK9N8YxJQd9N3KNaljZlO55qObMrW8byl5mJxjzNe752cV+khjEaXpStvZbq1SIXh2nXFRk0GwMLV/qbLZRLKMwBP93GhsHD13Iznpg3CRUTsspWdLh6mhy5pWt6VBAsiiiGY+lgGUJ/ko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=znmVRaGS; arc=none smtp.client-ip=209.85.221.53 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-f53.google.com with SMTP id ffacd0b85a97d-33ce8cbf465so2728543f8f.3 for ; Tue, 20 Feb 2024 07:00:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708441199; x=1709045999; 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=znmVRaGSJ6JJlCDRmvJMD0FoWz4wH7Io0JTJVv1GpGtNarkmgou1jwAvuzZmOo5MCI HCd8PBeBjeLbGtcijb43T+SdLsYkQw3q6BcNXCWO9rmQlHHxaUzul+kB/L+84LaS5xBl gsvTH1G8EwlkLnA0Af+vFZiILbyuAw1t2WJGmOjsElm6NaJL35wEJMffdMBwYe/SZfEu 2n29Fq94TWG15u/qBUD/ivGqc3RW/zBAKaslQCHLVQ89+i83h2qu2TpXRjb39a3XE5bD W9abNXLuCGLXTP3hJrROU//oxwC0oRBladnYYXehiP+ihZVOxVkhtnHqLSFS+pmB9zUo frKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708441199; x=1709045999; 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=wdyvpO7QG6kIbboxvDwo5vnamWYfJ/wh6PVOzE+iRgfz4jC3mhRFeeAntqsMXFVdhk XeHMv2HAIvLsjKQjDz6l+NUqfhzkSxwXdnHlzpQWiKOv2DfeEU+XvwSdhXrt6JY/8Or2 BDaryoosleBXaMj8KfL07cNL/GmS1DE9wZbcupcQ7QtFpJiqLjdhs+BjkxLXjVyo8AZK iLkuPlmP1p5OOnbvMpnUxpvufEDB3eal/ifeh1D78SmDJwOdQN+r2EhnhQ7HIESVRzzl 8fe4lpAEVlps0EiuNjqW8jiu+9miU1Ftao14kb9ymu5wowj9aEejeE1/BVWnJQ5GkEPZ W7tQ== X-Forwarded-Encrypted: i=1; AJvYcCVtpH6fj3LHoiQ5RBgGH6L1Bs0nI1jspXYUA/9H4hw3TJ7aX/KvEOEQjUgT1GQexr8OW/t7YbjekOav8fxKESlZzyxVu5JMeoJ2SoGv X-Gm-Message-State: AOJu0YzzMelts8saJWayDHzaU5V6Q6p0DLVKNmSxLN/48QqEpnrJ3PCh R2CcV49sjrp403e1Z/+u4Av9RysZtq6PiCj0Igrj9f2fM103Qw6osaRVB6XMgFY= X-Received: by 2002:a5d:64a7:0:b0:33d:ed4:5c86 with SMTP id m7-20020a5d64a7000000b0033d0ed45c86mr13698111wrp.63.1708441199370; Tue, 20 Feb 2024 06:59:59 -0800 (PST) Received: from vingu-book.. ([2a01:e0a:f:6020:8deb:bfb9:b028:6d5c]) by smtp.gmail.com with ESMTPSA id v4-20020a5d6784000000b0033d39626c27sm9304405wru.76.2024.02.20.06.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 06:59:58 -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: Vincent Guittot Subject: [PATCH v5 3/5] thermal/cpufreq: Remove arch_update_thermal_pressure() Date: Tue, 20 Feb 2024 15:59:45 +0100 Message-Id: <20240220145947.1107937-4-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240220145947.1107937-1-vincent.guittot@linaro.org> References: <20240220145947.1107937-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