]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Thermal: fix a wrong comment
authorZhang Rui <rui.zhang@intel.com>
Wed, 6 Feb 2013 01:34:32 +0000 (09:34 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 6 Feb 2013 06:13:56 +0000 (14:13 +0800)
"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>
drivers/thermal/cpu_cooling.c

index 836828e29a87982e2828949e4e2daea532bb7ed9..455c77a961dec5119048fe7b687bc5cb100ed3f5 100644 (file)
@@ -118,8 +118,8 @@ static int is_cpufreq_valid(int cpu)
 /**
  * get_cpu_frequency - get the absolute value of frequency from level.
  * @cpu: cpu for which frequency is fetched.
- * @level: level of frequency of the CPU
- *     e.g level=1 --> 1st MAX FREQ, LEVEL=2 ---> 2nd MAX FREQ, .... etc
+ * @level: level of frequency, equals cooling state of cpu cooling device
+ *     e.g level=0 --> 1st MAX FREQ, level=1 ---> 2nd MAX FREQ, .... etc
  */
 static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level)
 {