thermal/idle_inject: Fix comment of idle_duration_us and name of latency_ns
authorzhuguangqing <zhuguangqing@xiaomi.com>
Thu, 17 Sep 2020 07:35:53 +0000 (15:35 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 12 Oct 2020 10:08:35 +0000 (12:08 +0200)
The comment of idle_duration_us and the name of latency_ns can be misleading,
so fix them.

Signed-off-by: zhuguangqing <zhuguangqing@xiaomi.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200917073553.898-1-zhuguangqing83@gmail.com
drivers/thermal/cpuidle_cooling.c
include/linux/idle_inject.h

index 78e3e8238116c457765074a1bd37d98a792170cd..7ecab4b16b29c28c7ec670004d8fe652dbf63b6e 100644 (file)
@@ -30,7 +30,7 @@ static DEFINE_IDA(cpuidle_ida);
 
 /**
  * cpuidle_cooling_runtime - Running time computation
- * @idle_duration_us: the idle cooling device
+ * @idle_duration_us: CPU idle time to inject in microseconds
  * @state: a percentile based number
  *
  * The running duration is computed from the idle injection duration
index 91a8612b8bf9e2ea249fa96a1fc4f6f7fa31065e..fb88e23a99d3d97d77cfbf81def3c662208a8b7e 100644 (file)
@@ -28,6 +28,6 @@ void idle_inject_get_duration(struct idle_inject_device *ii_dev,
                                 unsigned int *idle_duration_us);
 
 void idle_inject_set_latency(struct idle_inject_device *ii_dev,
-                            unsigned int latency_ns);
+                            unsigned int latency_us);
 
 #endif /* __IDLE_INJECT_H__ */