diff options
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 1ec1591e3fd3..eb62ffaad6a2 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
@@ -299,6 +299,12 @@ static int cpufreq_apply_cooling(struct cpufreq_cooling_device *cpufreq_device, | |||
299 | * @nb: struct notifier_block * with callback info. | 299 | * @nb: struct notifier_block * with callback info. |
300 | * @event: value showing cpufreq event for which this function invoked. | 300 | * @event: value showing cpufreq event for which this function invoked. |
301 | * @data: callback-specific data | 301 | * @data: callback-specific data |
302 | * | ||
303 | * Callback to highjack the notification on cpufreq policy transition. | ||
304 | * Every time there is a change in policy, we will intercept and | ||
305 | * update the cpufreq policy with thermal constraints. | ||
306 | * | ||
307 | * Return: 0 (success) | ||
302 | */ | 308 | */ |
303 | static int cpufreq_thermal_notifier(struct notifier_block *nb, | 309 | static int cpufreq_thermal_notifier(struct notifier_block *nb, |
304 | unsigned long event, void *data) | 310 | unsigned long event, void *data) |