diff options
author | Zhang Rui <rui.zhang@intel.com> | 2013-02-05 20:34:32 -0500 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-02-06 01:13:56 -0500 |
commit | 475f41c3ab3dea3a5c60b90197baf57da01fdb5f (patch) | |
tree | bdbfcf56bcd73bf13c3037748092dd6203fa2d27 /drivers/thermal | |
parent | e6e238c38bd4d42d5e2cddb2165e1a46e0fb1200 (diff) |
Thermal: fix a wrong comment
"level" parameter of get_cpu_frequency equals cooling state
of cpu cooling device, and it starts from 0.
Fix the misleading comment.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 836828e29a87..455c77a961de 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
@@ -118,8 +118,8 @@ static int is_cpufreq_valid(int cpu) | |||
118 | /** | 118 | /** |
119 | * get_cpu_frequency - get the absolute value of frequency from level. | 119 | * get_cpu_frequency - get the absolute value of frequency from level. |
120 | * @cpu: cpu for which frequency is fetched. | 120 | * @cpu: cpu for which frequency is fetched. |
121 | * @level: level of frequency of the CPU | 121 | * @level: level of frequency, equals cooling state of cpu cooling device |
122 | * e.g level=1 --> 1st MAX FREQ, LEVEL=2 ---> 2nd MAX FREQ, .... etc | 122 | * e.g level=0 --> 1st MAX FREQ, level=1 ---> 2nd MAX FREQ, .... etc |
123 | */ | 123 | */ |
124 | static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level) | 124 | static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level) |
125 | { | 125 | { |