thermal: cpu_cooling: update documentation for cpufreq_apply_cooling
[deliverable/linux.git] / drivers / thermal / cpu_cooling.c
index 73944a34fdb9e2fbcf4123b285dc95872e2a5e92..1ec1591e3fd3a8fff4176eca063e5e19d55f764e 100644 (file)
@@ -257,6 +257,12 @@ static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level)
  * @cpufreq_device: cpufreq_cooling_device pointer containing frequency
  *     clipping data.
  * @cooling_state: value of the cooling state.
+ *
+ * Function used to make sure the cpufreq layer is aware of current thermal
+ * limits. The limits are applied by updating the cpufreq policy.
+ *
+ * Return: 0 on success, an error code otherwise (-EINVAL in case wrong
+ * cooling state).
  */
 static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device,
                                unsigned long cooling_state)
This page took 0.025205 seconds and 5 git commands to generate.