summaryrefslogtreecommitdiffstats
path: root/include/linux/cpu.h
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2019-08-02 13:34:23 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-09-03 05:33:29 -0400
commit82e430a6df7f0b5972c7fe717faffea823c6b84a (patch)
tree464c1a59817af384666f36669b3e0d5187be2ffe /include/linux/cpu.h
parent97d3eb9da84cae0548359b0aecb8619faad003b7 (diff)
cpuidle: play_idle: Increase the resolution to usec
The play_idle resolution is 1ms. The intel_powerclamp bases the idle duration on jiffies. The idle injection API is also using msec based duration but has no user yet. Unfortunately, msec based time does not fit well when we want to inject idle cycle precisely with shallow idle state. In order to set the scene for the incoming idle injection user, move the precision up to usec when calling play_idle. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r--include/linux/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index fcb1386bb0d4..88dc0c653925 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -179,7 +179,7 @@ void arch_cpu_idle_dead(void);
179int cpu_report_state(int cpu); 179int cpu_report_state(int cpu);
180int cpu_check_up_prepare(int cpu); 180int cpu_check_up_prepare(int cpu);
181void cpu_set_state_online(int cpu); 181void cpu_set_state_online(int cpu);
182void play_idle(unsigned long duration_ms); 182void play_idle(unsigned long duration_us);
183 183
184#ifdef CONFIG_HOTPLUG_CPU 184#ifdef CONFIG_HOTPLUG_CPU
185bool cpu_wait_death(unsigned int cpu, int seconds); 185bool cpu_wait_death(unsigned int cpu, int seconds);