linux/drivers/powercap
Daniel Lezcano 88763a5cf8 powercap / idle_inject: Add an idle injection framework
Initially, the cpu_cooling device for ARM was changed by adding a new
policy inserting idle cycles. The intel_powerclamp driver does a
similar action.

Instead of implementing idle injections privately in the cpu_cooling
device, move the idle injection code in a dedicated framework and give
the opportunity to other frameworks to make use of it.

The framework relies on the smpboot kthreads which handles via its
main loop the common code for hotplugging and [un]parking.

This code was previously tested with the cpu cooling device and went
through several iterations. It results now in split code and API
exported in the header file. It was tested with the cpu cooling device
with success.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
[ rjw: Rewrite of all comments ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2018-07-02 13:00:24 +02:00
..
idle_inject.c powercap / idle_inject: Add an idle injection framework 2018-07-02 13:00:24 +02:00
intel_rapl.c powercap: RAPL: Add support for Cannon Lake 2018-03-19 00:02:24 +01:00
Kconfig powercap / idle_inject: Add an idle injection framework 2018-07-02 13:00:24 +02:00
Makefile powercap / idle_inject: Add an idle injection framework 2018-07-02 13:00:24 +02:00
powercap_sys.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00