summaryrefslogtreecommitdiff
path: root/include/linux/idle_inject.h
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2019-08-02 20:34:24 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-09-03 12:33:29 +0300
commitcd4c0763064f02f42824eed61be38eafdc702281 (patch)
tree51d112608c04d2428041493742f5ebccf1d22118 /include/linux/idle_inject.h
parent82e430a6df7f0b5972c7fe717faffea823c6b84a (diff)
downloadlinux-cd4c0763064f02f42824eed61be38eafdc702281.tar.xz
powercap: idle_inject: Use higher resolution for idle injection
The resolution of the idle injection is limited to 1ms. If there is a need for an injection of 1.2 ms, it is not possible. The idle injection API is not yet used, so it is safe to convert the existing API to the new time unit instead of adding more functions. Convert to microsecond in order to use a finer grain time unit when injecting idle cycles. 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/idle_inject.h')
-rw-r--r--include/linux/idle_inject.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/idle_inject.h b/include/linux/idle_inject.h
index bdc0293fb6cb..a445cd1a36c5 100644
--- a/include/linux/idle_inject.h
+++ b/include/linux/idle_inject.h
@@ -20,10 +20,10 @@ int idle_inject_start(struct idle_inject_device *ii_dev);
void idle_inject_stop(struct idle_inject_device *ii_dev);
void idle_inject_set_duration(struct idle_inject_device *ii_dev,
- unsigned int run_duration_ms,
- unsigned int idle_duration_ms);
+ unsigned int run_duration_us,
+ unsigned int idle_duration_us);
void idle_inject_get_duration(struct idle_inject_device *ii_dev,
- unsigned int *run_duration_ms,
- unsigned int *idle_duration_ms);
+ unsigned int *run_duration_us,
+ unsigned int *idle_duration_us);
#endif /* __IDLE_INJECT_H__ */