mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] cpufreq: drop redundant freq_table argument in helpers
@ 2025-09-01 11:25 Zihuan Zhang
  2025-09-01 11:25 ` [PATCH v1 1/3] cpufreq: Drop redundant freq_table parameter Zihuan Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Zihuan Zhang @ 2025-09-01 11:25 UTC (permalink / raw)
  To: Rafael J . wysocki, Viresh Kumar
  Cc: zhenglifeng, linux-pm, linux-kernel, Zihuan Zhang

This patchset updates the cpufreq core and drivers to fully adopt
the new policy->freq_table approach introduced in commit
e0b3165ba521 ("cpufreq: add 'freq_table' in struct cpufreq_policy").

Motivation:
- The frequency table is per-policy, not per-CPU, so redundant
  freq_table arguments in core helpers and drivers are no longer needed.
- Removing the extra argument reduces confusion and potential mistakes.

Patch details:

1. cpufreq: core: drop redundant freq_table argument in helpers
   - Remove freq_table parameters in core helper functions.
   - All helper functions now use policy directly.

2. cpufreq: drivers: remove redundant freq_table argument
   - Update cpufreq drivers to match the new core API.
   - Calls that previously passed a separate freq_table argument
   - No behavior changes, only API consistency.

Zihuan Zhang (3):
  cpufreq: Drop redundant freq_table parameter
  cpufreq: sh: drop redundant freq_table argument
  cpufreq: virtual: drop redundant freq_table argument

 drivers/cpufreq/cpufreq.c         |  2 +-
 drivers/cpufreq/freq_table.c      | 14 ++++++--------
 drivers/cpufreq/sh-cpufreq.c      |  2 +-
 drivers/cpufreq/virtual-cpufreq.c |  2 +-
 include/linux/cpufreq.h           |  7 +++----
 5 files changed, 12 insertions(+), 15 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2025-09-02  6:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-01 11:25 [PATCH v1 0/3] cpufreq: drop redundant freq_table argument in helpers Zihuan Zhang
2025-09-01 11:25 ` [PATCH v1 1/3] cpufreq: Drop redundant freq_table parameter Zihuan Zhang
2025-09-01 11:25 ` [PATCH v1 2/3] cpufreq: sh: drop redundant freq_table argument Zihuan Zhang
2025-09-02  5:40   ` Viresh Kumar
2025-09-02  6:06     ` Zihuan Zhang
2025-09-02  6:23       ` Viresh Kumar
2025-09-02  6:43         ` Zihuan Zhang
2025-09-01 11:25 ` [PATCH v1 3/3] cpufreq: virtual: " Zihuan Zhang
2025-09-02  5:42 ` [PATCH v1 0/3] cpufreq: drop redundant freq_table argument in helpers Viresh Kumar
2025-09-02  5:54   ` 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®