From: Daniel Lezcano Subject: Re: [PATCH V9] powercap/drivers/idle_injection: Add an idle injection framework Date: Mon, 25 Jun 2018 00:40:15 +0200 Message-ID: References: <1529414627-5638-1-git-send-email-daniel.lezcano@linaro.org> <20180620043415.57yvgzlye4l7wdqy@vireshk-i7> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20180620043415.57yvgzlye4l7wdqy@vireshk-i7> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: rjw@rjwysocki.net Cc: Viresh Kumar , linux-kernel@vger.kernel.org, Eduardo Valentin , Javi Merino , Leo Yan , Kevin Wangtao , Vincent Guittot , Rui Zhang , Daniel Thompson , Peter Zijlstra , Andrea Parri , "open list:POWER MANAGEMENT CORE" List-Id: linux-pm@vger.kernel.org Hi Rafael, do you think this patch is acceptable for merging ? On 20/06/2018 06:34, Viresh Kumar wrote: > On 19-06-18, 15:23, 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 >> Cc: Viresh Kumar >> Cc: Eduardo Valentin >> Cc: Javi Merino >> Cc: Leo Yan >> Cc: Kevin Wangtao >> Cc: Vincent Guittot >> Cc: Rui Zhang >> Cc: Daniel Thompson >> Cc: Peter Zijlstra >> Cc: Andrea Parri >> --- >> >> V9: >> - Unconditionnally reset the should_run flag for all kthreads >> belonging to the cpumask and remove the park() callback (Viresh Kumar) >> - Fix up the typos in the comments (Viresh Kumar) > > Looks great now. Can't think of any more races :) > > Reviewed-by: Viresh Kumar > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog