From nobody Fri Dec 19 19:37:26 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FC86338F4D; Thu, 4 Dec 2025 10:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764843249; cv=none; b=S5P4MZ5nXQqRsjh3lCjgGcCHHCtNhwAgJNgY5uvsFytAZ/utRV/9+o5Y30pZWy7sxMWrK6YdbskDQfsaYTY/c008b8xVw8u9d/i6aOc4AckQNx8rPd5IJtjPS3sCtAbrlYCT9furimkWekfxA69GSo8NshR/3xzHNqAlVLWmiIQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764843249; c=relaxed/simple; bh=jJ+J4azMi46GNdDcZBbnfKfZeONx47CY4QJVdrsGGu8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UlQuzFENMSg6eAiAKkGZanISjdrxhxq5muYH7a7oriL4rZS+rFsIMaWX+GFXD/I77lMhZ6mihWsveNEAcDjO0LGkDbGe0sCrMOZzgBjPv6xz7cHHxSu6MdiTWKYcAEgtFYPTiq6LrAF/Ztx1SP+KamaRa1oq7YMRgBmjl8H2srA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 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 860B61575; Thu, 4 Dec 2025 02:14:00 -0800 (PST) Received: from e135073.nice.arm.com (e135073.arm.com [10.34.125.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 025A33F73B; Thu, 4 Dec 2025 02:14:04 -0800 (PST) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Christian Loehle , Ionela Voinescu , zhenglifeng1@huawei.com, Jie Zhan , Pierre Gondois , Huang Rui , "Gautham R. Shenoy" , Mario Limonciello , Perry Yuan , "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH v1 3/4] cpufreq: Centralize boost freq QoS requests Date: Thu, 4 Dec 2025 11:13:39 +0100 Message-ID: <20251204101344.192678-4-pierre.gondois@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251204101344.192678-1-pierre.gondois@arm.com> References: <20251204101344.192678-1-pierre.gondois@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" policy_set_boost() calls the cpufreq set_boost callback. Update the newly added boost_freq_req request from there: - whenever boost is toggled - to cover all possible paths Signed-off-by: Pierre Gondois --- drivers/cpufreq/cpufreq.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 23f64346b80f8..9d98b98e7981c 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -603,10 +603,16 @@ static int policy_set_boost(struct cpufreq_policy *po= licy, bool enable) policy->boost_enabled =3D enable; =20 ret =3D cpufreq_driver->set_boost(policy, enable); - if (ret) + if (ret) { policy->boost_enabled =3D !policy->boost_enabled; + return ret; + } =20 - return ret; + ret =3D freq_qos_update_request(policy->boost_freq_req, policy->cpuinfo.m= ax_freq); + if (ret < 0) + return ret; + + return 0; } =20 static ssize_t store_local_boost(struct cpufreq_policy *policy, --=20 2.43.0