Skip to content

Commit 0735069

Browse files
TinyWindzzrafaeljw
authored andcommitted
powercap: idle_inject: Replace play_idle() with play_idle_precise() in comments
After commit 333cff6 ("powercap/drivers/idle_inject: Specify idle state max latency"), we convert to use play_idle_precise() with max allowed latency to specify the idle state. Some function comments still use play_idle(), let's update it to play_idle_precise(). Signed-off-by: Yangtao Li <[email protected]> Signed-off-by: Frank Lee <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2d798d9 commit 0735069

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/powercap/idle_inject.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* The idle + run duration is specified via separate helpers and that allows
2020
* idle injection to be started.
2121
*
22-
* The idle injection kthreads will call play_idle() with the idle duration
23-
* specified as per the above.
22+
* The idle injection kthreads will call play_idle_precise() with the idle
23+
* duration and max allowed latency specified as per the above.
2424
*
2525
* After all of them have been woken up, a timer is set to start the next idle
2626
* injection cycle.
@@ -100,7 +100,7 @@ static void idle_inject_wakeup(struct idle_inject_device *ii_dev)
100100
*
101101
* This function is called when the idle injection timer expires. It wakes up
102102
* idle injection tasks associated with the timer and they, in turn, invoke
103-
* play_idle() to inject a specified amount of CPU idle time.
103+
* play_idle_precise() to inject a specified amount of CPU idle time.
104104
*
105105
* Return: HRTIMER_RESTART.
106106
*/
@@ -124,8 +124,8 @@ static enum hrtimer_restart idle_inject_timer_fn(struct hrtimer *timer)
124124
* idle_inject_fn - idle injection work function
125125
* @cpu: the CPU owning the task
126126
*
127-
* This function calls play_idle() to inject a specified amount of CPU idle
128-
* time.
127+
* This function calls play_idle_precise() to inject a specified amount of CPU
128+
* idle time.
129129
*/
130130
static void idle_inject_fn(unsigned int cpu)
131131
{

0 commit comments

Comments
 (0)