[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250904032210.92978-1-zhangzihuan@kylinos.cn>
Date: Thu, 4 Sep 2025 11:22:07 +0800
From: Zihuan Zhang <zhangzihuan@...inos.cn>
To: "Rafael J . wysocki" <rafael@...nel.org>,
Viresh Kumar <viresh.kumar@...aro.org>,
Saravana Kannan <saravanak@...gle.com>
Cc: zhenglifeng <zhenglifeng1@...wei.com>,
linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Zihuan Zhang <zhangzihuan@...inos.cn>
Subject: [PATCH v1 0/3] cpufreq: Clean up frequency table handling
This series contains a set of cleanups around cpufreq frequency table
handling.
The first patch drops the redundant @freq_table parameter from
cpufreq_frequency_table_verify(). This has already been Acked, but is
included here to avoid build issues with the following changes.
The second patch makes sure that policy limits are always enforced
even when a driver does not provide a frequency table. This removes
the implicit dependency on the table and makes the enforcement logic
consistent across drivers.
The third patch makes cpufreq_frequency_table_verify() internal,
since no external user should call it directly after the parameter
removal and the refactoring.
Together these patches simplify the API surface, reduce redundancy,
and make policy enforcement more robust.
Zihuan Zhang (3):
cpufreq: Drop redundant freq_table parameter
cpufreq: Always enforce policy limits even without frequency table
cpufreq: Make cpufreq_frequency_table_verify() internal
drivers/cpufreq/cpufreq.c | 2 +-
drivers/cpufreq/freq_table.c | 18 +++++++-----------
drivers/cpufreq/sh-cpufreq.c | 8 ++------
drivers/cpufreq/virtual-cpufreq.c | 5 +----
include/linux/cpufreq.h | 5 +----
5 files changed, 12 insertions(+), 26 deletions(-)
--
2.25.1
Powered by blists - more mailing lists