OpenCloudOS-Kernel/drivers/powercap
Daniel Lezcano 333cff6c96 powercap/drivers/idle_inject: Specify idle state max latency
Currently the idle injection framework uses the play_idle() function
which puts the current CPU in an idle state. The idle state is the
deepest one, as specified by the latency constraint when calling the
subsequent play_idle_precise() function with the INT_MAX.

The idle_injection is used by the cpuidle_cooling device which
computes the idle / run duration to mitigate the temperature by
injecting idle cycles. The cooling device has no control on the depth
of the idle state.

Allow finer control of the idle injection mechanism by allowing to
specify the latency for the idle state. Thus the cooling device has
the ability to have a guarantee on the exit latency of the idle states
it is injecting.

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Link: https://lore.kernel.org/r/20200429103644.5492-1-daniel.lezcano@linaro.org
2020-05-19 12:54:05 +02:00
..
Kconfig intel_rapl: abstract RAPL common code 2019-07-11 15:08:58 +02:00
Makefile intel_rapl: abstract RAPL common code 2019-07-11 15:08:58 +02:00
idle_inject.c powercap/drivers/idle_inject: Specify idle state max latency 2020-05-19 12:54:05 +02:00
intel_rapl_common.c powercap/intel_rapl: Convert to new X86 CPU match macros 2020-03-24 21:35:32 +01:00
intel_rapl_msr.c intel_rapl: Fix module autoloading issue 2019-07-11 15:08:58 +02:00
powercap_sys.c powercap: Invoke powercap_init() and rapl_init() earlier 2019-07-22 11:23:00 +02:00