mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
thermal: cpu_cooling: Add comment to clarify relation between cooling state and frequency
This wasn't explained well anywhere and should be clearly specified. Lets add a top level comment for this. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
beca6053fc
commit
07d888d831
1 changed files with 14 additions and 0 deletions
|
@ -28,6 +28,20 @@
|
||||||
#include <linux/cpu.h>
|
#include <linux/cpu.h>
|
||||||
#include <linux/cpu_cooling.h>
|
#include <linux/cpu_cooling.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Cooling state <-> CPUFreq frequency
|
||||||
|
*
|
||||||
|
* Cooling states are translated to frequencies throughout this driver and this
|
||||||
|
* is the relation between them.
|
||||||
|
*
|
||||||
|
* Highest cooling state corresponds to lowest possible frequency.
|
||||||
|
*
|
||||||
|
* i.e.
|
||||||
|
* level 0 --> 1st Max Freq
|
||||||
|
* level 1 --> 2nd Max Freq
|
||||||
|
* ...
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct cpufreq_cooling_device - data for cooling device with cpufreq
|
* struct cpufreq_cooling_device - data for cooling device with cpufreq
|
||||||
* @id: unique integer value corresponding to each cpufreq_cooling_device
|
* @id: unique integer value corresponding to each cpufreq_cooling_device
|
||||||
|
|
Loading…
Reference in a new issue