Skip to content

Commit 950c645

Browse files
committed
cpufreq: Drop unused symbol CPUFREQ_ETERNAL
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>
1 parent c28a280 commit 950c645

5 files changed

Lines changed: 3 additions & 15 deletions

File tree

Documentation/admin-guide/pm/cpufreq.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,6 @@ are the following:
274274
The time it takes to switch the CPUs belonging to this policy from one
275275
P-state to another, in nanoseconds.
276276

277-
If unknown or if known to be so high that the scaling driver does not
278-
work with the `ondemand`_ governor, -1 (:c:macro:`CPUFREQ_ETERNAL`)
279-
will be returned by reads from this attribute.
280-
281277
``related_cpus``
282278
List of all (online and offline) CPUs belonging to this policy.
283279

Documentation/cpu-freq/cpu-drivers.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ Then, the driver must fill in the following values:
109109
+-----------------------------------+--------------------------------------+
110110
|policy->cpuinfo.transition_latency | the time it takes on this CPU to |
111111
| | switch between two frequencies in |
112-
| | nanoseconds (if appropriate, else |
113-
| | specify CPUFREQ_ETERNAL) |
112+
| | nanoseconds |
114113
+-----------------------------------+--------------------------------------+
115114
|policy->cur | The current operating frequency of |
116115
| | this CPU (if appropriate) |

Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ CPUfreq核心层注册一个cpufreq_driver结构体。
112112
| | |
113113
+-----------------------------------+--------------------------------------+
114114
|policy->cpuinfo.transition_latency | CPU在两个频率之间切换所需的时间,以 |
115-
| | 纳秒为单位(如不适用,设定为 |
116-
| | CPUFREQ_ETERNAL) |
115+
| | 纳秒为单位 |
117116
| | |
118117
+-----------------------------------+--------------------------------------+
119118
|policy->cur | 该CPU当前的工作频率(如适用) |

Documentation/translations/zh_TW/cpu-freq/cpu-drivers.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ CPUfreq核心層註冊一個cpufreq_driver結構體。
112112
| | |
113113
+-----------------------------------+--------------------------------------+
114114
|policy->cpuinfo.transition_latency | CPU在兩個頻率之間切換所需的時間,以 |
115-
| | 納秒爲單位(如不適用,設定爲 |
116-
| | CPUFREQ_ETERNAL) |
115+
| | 納秒爲單位 |
117116
| | |
118117
+-----------------------------------+--------------------------------------+
119118
|policy->cur | 該CPU當前的工作頻率(如適用) |

include/linux/cpufreq.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@
2626
*********************************************************************/
2727
/*
2828
* Frequency values here are CPU kHz
29-
*
30-
* Maximum transition latency is in nanoseconds - if it's unknown,
31-
* CPUFREQ_ETERNAL shall be used.
3229
*/
3330

34-
#define CPUFREQ_ETERNAL (-1)
35-
3631
#define CPUFREQ_DEFAULT_TRANSITION_LATENCY_NS NSEC_PER_MSEC
3732

3833
#define CPUFREQ_NAME_LEN 16

0 commit comments

Comments
 (0)