@@ -108,6 +108,8 @@ Description: CPU topology files that describe a logical CPU's relationship
108108
109109What: /sys/devices/system/cpu/cpuidle/current_driver
110110 /sys/devices/system/cpu/cpuidle/current_governer_ro
111+ /sys/devices/system/cpu/cpuidle/available_governors
112+ /sys/devices/system/cpu/cpuidle/current_governor
111113Date: September 2007
112114Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
113115Description: Discover cpuidle policy and mechanism
@@ -119,13 +121,84 @@ Description: Discover cpuidle policy and mechanism
119121 Idle policy (governor) is differentiated from idle mechanism
120122 (driver)
121123
122- current_driver: displays current idle mechanism
124+ current_driver: (RO) displays current idle mechanism
123125
124- current_governor_ro: displays current idle policy
126+ current_governor_ro: (RO) displays current idle policy
127+
128+ With the cpuidle_sysfs_switch boot option enabled (meant for
129+ developer testing), the following three attributes are visible
130+ instead:
131+
132+ current_driver: same as described above
133+
134+ available_governors: (RO) displays a space separated list of
135+ available governors
136+
137+ current_governor: (RW) displays current idle policy. Users can
138+ switch the governor at runtime by writing to this file.
125139
126140 See files in Documentation/cpuidle/ for more information.
127141
128142
143+ What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/name
144+ /sys/devices/system/cpu/cpuX/cpuidle/stateN/latency
145+ /sys/devices/system/cpu/cpuX/cpuidle/stateN/power
146+ /sys/devices/system/cpu/cpuX/cpuidle/stateN/time
147+ /sys/devices/system/cpu/cpuX/cpuidle/stateN/usage
148+ Date: September 2007
149+ KernelVersion: v2.6.24
150+ Contact: Linux power management list <linux-pm@vger.kernel.org>
151+ Description:
152+ The directory /sys/devices/system/cpu/cpuX/cpuidle contains per
153+ logical CPU specific cpuidle information for each online cpu X.
154+ The processor idle states which are available for use have the
155+ following attributes:
156+
157+ name: (RO) Name of the idle state (string).
158+
159+ latency: (RO) The latency to exit out of this idle state (in
160+ microseconds).
161+
162+ power: (RO) The power consumed while in this idle state (in
163+ milliwatts).
164+
165+ time: (RO) The total time spent in this idle state (in microseconds).
166+
167+ usage: (RO) Number of times this state was entered (a count).
168+
169+
170+ What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/desc
171+ Date: February 2008
172+ KernelVersion: v2.6.25
173+ Contact: Linux power management list <linux-pm@vger.kernel.org>
174+ Description:
175+ (RO) A small description about the idle state (string).
176+
177+
178+ What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/disable
179+ Date: March 2012
180+ KernelVersion: v3.10
181+ Contact: Linux power management list <linux-pm@vger.kernel.org>
182+ Description:
183+ (RW) Option to disable this idle state (bool). The behavior and
184+ the effect of the disable variable depends on the implementation
185+ of a particular governor. In the ladder governor, for example,
186+ it is not coherent, i.e. if one is disabling a light state, then
187+ all deeper states are disabled as well, but the disable variable
188+ does not reflect it. Likewise, if one enables a deep state but a
189+ lighter state still is disabled, then this has no effect.
190+
191+
192+ What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/residency
193+ Date: March 2014
194+ KernelVersion: v3.15
195+ Contact: Linux power management list <linux-pm@vger.kernel.org>
196+ Description:
197+ (RO) Display the target residency i.e. the minimum amount of
198+ time (in microseconds) this cpu should spend in this idle state
199+ to make the transition worth the effort.
200+
201+
129202What: /sys/devices/system/cpu/cpu#/cpufreq/*
130203Date: pre-git history
131204Contact: linux-pm@vger.kernel.org
0 commit comments