powercap: idle_inject: Use higher resolution for idle injection
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 2 Aug 2019 17:34:24 +0000 (19:34 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Sep 2019 09:33:29 +0000 (11:33 +0200)
commitcd4c0763064f02f42824eed61be38eafdc702281
tree51d112608c04d2428041493742f5ebccf1d22118
parent82e430a6df7f0b5972c7fe717faffea823c6b84a
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>
drivers/powercap/idle_inject.c
include/linux/idle_inject.h