aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/cpu_cooling.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 73944a34fdb9..1ec1591e3fd3 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -257,6 +257,12 @@ static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level)
257 * @cpufreq_device: cpufreq_cooling_device pointer containing frequency 257 * @cpufreq_device: cpufreq_cooling_device pointer containing frequency
258 * clipping data. 258 * clipping data.
259 * @cooling_state: value of the cooling state. 259 * @cooling_state: value of the cooling state.
260 *
261 * Function used to make sure the cpufreq layer is aware of current thermal
262 * limits. The limits are applied by updating the cpufreq policy.
263 *
264 * Return: 0 on success, an error code otherwise (-EINVAL in case wrong
265 * cooling state).
260 */ 266 */
261static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device, 267static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device,
262 unsigned long cooling_state) 268 unsigned long cooling_state)