Initially, the cpu_cooling device for ARM was changed by adding a new
policy inserting idle cycles. The intel_powerclamp driver does a
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
Signed-off-by: Daniel Lezcano <email@example.com>
Reviewed-by: Viresh Kumar <firstname.lastname@example.org>
[ rjw: Rewrite of all comments ]
Signed-off-by: Rafael J. Wysocki <email@example.com>