]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cpufreq: Drop unused symbol CPUFREQ_ETERNAL
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Sep 2025 10:31:47 +0000 (12:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Oct 2025 11:57:22 +0000 (13:57 +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>
Documentation/admin-guide/pm/cpufreq.rst
Documentation/cpu-freq/cpu-drivers.rst
Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst
Documentation/translations/zh_TW/cpu-freq/cpu-drivers.rst
include/linux/cpufreq.h

index cacb9f0307dd5e70e366cbf18a7b48d5758b488a..738d7b4dc33af169dd70a12253e61ac9c15eb92b 100644 (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.
 
index d84ededb66f92a234395be70f8fcdec1412aaed7..c5635ac3de54748791f5de56e4bf943ad7058251 100644 (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)            |
index 2ca92042767be437a4d23689a75fd87e2c1b4477..8238f4c6e4f51ad1c07cf04363344f8d44175a5c 100644 (file)
@@ -112,8 +112,7 @@ CPUfreq核心层注册一个cpufreq_driver结构体。
 |                                   |                                      |
 +-----------------------------------+--------------------------------------+
 |policy->cpuinfo.transition_latency | CPU在两个频率之间切换所需的时间,以  |
-|                                   | 纳秒为单位(如不适用,设定为         |
-|                                   | CPUFREQ_ETERNAL)                    |
+|                                   | 纳秒为单位                    |
 |                                   |                                      |
 +-----------------------------------+--------------------------------------+
 |policy->cur                        | 该CPU当前的工作频率(如适用)          |
index add3de2d4523ade7d703e07a966c572abd2dcc1b..5435c3928d4b3e11504d0b7771c0de56c0886393 100644 (file)
@@ -112,8 +112,7 @@ CPUfreq核心層註冊一個cpufreq_driver結構體。
 |                                   |                                      |
 +-----------------------------------+--------------------------------------+
 |policy->cpuinfo.transition_latency | CPU在兩個頻率之間切換所需的時間,以  |
-|                                   | 納秒爲單位(如不適用,設定爲         |
-|                                   | CPUFREQ_ETERNAL)                    |
+|                                   | 納秒爲單位                    |
 |                                   |                                      |
 +-----------------------------------+--------------------------------------+
 |policy->cur                        | 該CPU當前的工作頻率(如適用)          |
index bc8c083bc16a66fb893eaf123fdc84b514d66a96..0465d1e6f72ac0bd146c6d9cabeaac844a6284f5 100644 (file)
  *********************************************************************/
 /*
  * 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