lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250901112551.35534-1-zhangzihuan@kylinos.cn>
Date: Mon,  1 Sep 2025 19:25:48 +0800
From: Zihuan Zhang <zhangzihuan@...inos.cn>
To: "Rafael J . wysocki" <rafael@...nel.org>,
	Viresh Kumar <viresh.kumar@...aro.org>
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: drop redundant freq_table argument in helpers

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ