Commit 0735069c authored by Yangtao Li's avatar Yangtao Li Committed by Rafael J. Wysocki

powercap: idle_inject: Replace play_idle() with play_idle_precise() in comments

After commit 333cff6c ("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: default avatarYangtao Li <tiny.windzz@gmail.com>
Signed-off-by: default avatarFrank Lee <frank@allwinnertech.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2d798d9f
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
* The idle + run duration is specified via separate helpers and that allows * The idle + run duration is specified via separate helpers and that allows
* idle injection to be started. * idle injection to be started.
* *
* The idle injection kthreads will call play_idle() with the idle duration * The idle injection kthreads will call play_idle_precise() with the idle
* specified as per the above. * duration and max allowed latency specified as per the above.
* *
* After all of them have been woken up, a timer is set to start the next idle * After all of them have been woken up, a timer is set to start the next idle
* injection cycle. * injection cycle.
...@@ -100,7 +100,7 @@ static void idle_inject_wakeup(struct idle_inject_device *ii_dev) ...@@ -100,7 +100,7 @@ static void idle_inject_wakeup(struct idle_inject_device *ii_dev)
* *
* This function is called when the idle injection timer expires. It wakes up * This function is called when the idle injection timer expires. It wakes up
* idle injection tasks associated with the timer and they, in turn, invoke * idle injection tasks associated with the timer and they, in turn, invoke
* play_idle() to inject a specified amount of CPU idle time. * play_idle_precise() to inject a specified amount of CPU idle time.
* *
* Return: HRTIMER_RESTART. * Return: HRTIMER_RESTART.
*/ */
...@@ -124,8 +124,8 @@ static enum hrtimer_restart idle_inject_timer_fn(struct hrtimer *timer) ...@@ -124,8 +124,8 @@ static enum hrtimer_restart idle_inject_timer_fn(struct hrtimer *timer)
* idle_inject_fn - idle injection work function * idle_inject_fn - idle injection work function
* @cpu: the CPU owning the task * @cpu: the CPU owning the task
* *
* This function calls play_idle() to inject a specified amount of CPU idle * This function calls play_idle_precise() to inject a specified amount of CPU
* time. * idle time.
*/ */
static void idle_inject_fn(unsigned int cpu) static void idle_inject_fn(unsigned int cpu)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment