cpufreq: Drop unused symbol CPUFREQ_ETERNAL

JIRA: https://issues.redhat.com/browse/RHEL-156421
Conflicts:
       Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst -
context differences, and I don't speak Chinese so I went with the
final form
       Documentation/translations/zh_TW/cpu-freq/cpu-drivers.rst -
context differences, and I don't speak Chinese so I went with the
final form

commit 950c6451a5c38d375993c3b9da427e2e69b01c30
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date:   Fri Sep 26 12:31:47 2025 +0200

Drop CPUFREQ_ETERNAL that has no users any more along with all
references to it in the documentation.

No functional impact.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Jie Zhan <zhanjie9@hisilicon.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Qais Yousef <qyousef@layalina.io>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
This commit is contained in:
Mark Langsdorf
2026-05-15 17:17:26 -04:00
parent 3556f30b14
commit d4fc1e2e83
5 changed files with 7 additions and 19 deletions
-4
View File
@@ -274,10 +274,6 @@ are the following:
The time it takes to switch the CPUs belonging to this policy from one
P-state to another, in nanoseconds.
If unknown or if known to be so high that the scaling driver does not
work with the `ondemand`_ governor, -1 (:c:macro:`CPUFREQ_ETERNAL`)
will be returned by reads from this attribute.
``related_cpus``
List of all (online and offline) CPUs belonging to this policy.
+1 -2
View File
@@ -109,8 +109,7 @@ Then, the driver must fill in the following values:
+-----------------------------------+--------------------------------------+
|policy->cpuinfo.transition_latency | the time it takes on this CPU to |
| | switch between two frequencies in |
| | nanoseconds (if appropriate, else |
| | specify CPUFREQ_ETERNAL) |
| | nanoseconds |
+-----------------------------------+--------------------------------------+
|policy->cur | The current operating frequency of |
| | this CPU (if appropriate) |
@@ -110,10 +110,9 @@ CPUfreq核心层注册一个cpufreq_driver结构体。
| | |
| | |
+-----------------------------------+--------------------------------------+
|policy->cpuinfo.transition_latency | |
| | CPU在两个频率之间切换所需的时间,以 |
| | 纳秒为单位(如适用,否则指定 |
| | CPUFREQ_ETERNAL |
|policy->cpuinfo.transition_latency | CPU在两个频率之间切换所需的时间,以 |
| | 纳秒为单位 |
| | |
+-----------------------------------+--------------------------------------+
|policy->cur | 该CPU当前的工作频率(如适用) |
| | |
@@ -109,10 +109,9 @@ CPUfreq核心層註冊一個cpufreq_driver結構體。
| | |
| | |
+-----------------------------------+--------------------------------------+
|policy->cpuinfo.transition_latency | |
| | CPU在兩個頻率之間切換所需的時間,以 |
| | 納秒爲單位(如適用,否則指定 |
| | CPUFREQ_ETERNAL |
|policy->cpuinfo.transition_latency | CPU在兩個頻率之間切換所需的時間,以 |
| | 納秒爲單位 |
| | |
+-----------------------------------+--------------------------------------+
|policy->cur | 該CPU當前的工作頻率(如適用) |
| | |
-5
View File
@@ -25,13 +25,8 @@
*********************************************************************/
/*
* Frequency values here are CPU kHz
*
* Maximum transition latency is in nanoseconds - if it's unknown,
* CPUFREQ_ETERNAL shall be used.
*/
#define CPUFREQ_ETERNAL (-1)
#define CPUFREQ_DEFAULT_TRANSITION_LATENCY_NS NSEC_PER_MSEC
#define CPUFREQ_NAME_LEN 16