mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] cpufreq: Clean up frequency table handling
@ 2025-09-04  3:22 Zihuan Zhang
  2025-09-04  3:22 ` [PATCH v1 1/3] cpufreq: Drop redundant freq_table parameter Zihuan Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Zihuan Zhang @ 2025-09-04  3:22 UTC (permalink / raw)
  To: Rafael J . wysocki, Viresh Kumar, Saravana Kannan
  Cc: zhenglifeng, linux-pm, linux-kernel, Zihuan Zhang

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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2025-09-08  7:44 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-04  3:22 [PATCH v1 0/3] cpufreq: Clean up frequency table handling Zihuan Zhang
2025-09-04  3:22 ` [PATCH v1 1/3] cpufreq: Drop redundant freq_table parameter Zihuan Zhang
2025-09-04 13:31   ` Rafael J. Wysocki
2025-09-05  1:16     ` Zihuan Zhang
2025-09-04  3:22 ` [PATCH v1 2/3] cpufreq: Always enforce policy limits even without frequency table Zihuan Zhang
2025-09-04  4:48   ` Viresh Kumar
2025-09-04  5:23     ` Zihuan Zhang
2025-09-04  5:37       ` Viresh Kumar
2025-09-04  5:48         ` Zihuan Zhang
2025-09-08  6:13           ` Viresh Kumar
2025-09-08  6:51             ` Zihuan Zhang
2025-09-08  6:55               ` Viresh Kumar
2025-09-08  7:08                 ` Zihuan Zhang
2025-09-08  7:19                   ` Viresh Kumar
2025-09-08  7:36                     ` Zihuan Zhang
2025-09-08  7:44                       ` Viresh Kumar
2025-09-04  3:22 ` [PATCH v1 3/3] cpufreq: Make cpufreq_frequency_table_verify() internal Zihuan Zhang
2025-09-04  4:45   ` Viresh Kumar
2025-09-04  5:34     ` Zihuan Zhang
2025-09-08  6:46       ` Viresh Kumar
2025-09-04  4:24 ` [PATCH v1 0/3] cpufreq: Clean up frequency table handling Viresh Kumar
2025-09-04  4:36   ` Zihuan Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®