Messages in this thread | | | Date | Tue, 26 Jun 2018 16:31:05 +0530 | From | Viresh Kumar <> | Subject | Re: [PATCH V10] powercap/drivers/idle_inject: Add an idle injection framework |
| |
On 26-06-18, 12:53, Daniel Lezcano wrote: > 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> > Cc: Viresh Kumar <viresh.kumar@linaro.org> > Cc: Eduardo Valentin <edubezval@gmail.com> > Cc: Javi Merino <javi.merino@kernel.org> > Cc: Leo Yan <leo.yan@linaro.org> > Cc: Kevin Wangtao <kevin.wangtao@linaro.org> > Cc: Vincent Guittot <vincent.guittot@linaro.org> > Cc: Rui Zhang <rui.zhang@intel.com> > Cc: Daniel Thompson <daniel.thompson@linaro.org> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Andrea Parri <andrea.parri@amarulasolutions.com> > --- > > V10: > - Remove set_freezable (Rafael J. Wysocki) > - Reduce the prefixed names 'injection' by 'inject" (Rafael J. Wysocki) > - Rename 'idle_injection_wakeup_fn()' to 'idle_inject_timer_fn()' (Rafael J. Wysocki) > - Shorten label 'out_rollback_per_cpu' to 'out_rollback' (Rafael J. Wysocki)
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
-- viresh
| |