]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41cb9428cbef5e23645de75a26a2ddfe4d52fdc4
tree51d112608c04d2428041493742f5ebccf1d22118
parent5a58dfe1ff2134d09f51a8d7fafdd2a8aab5da52
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