From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Bellasi Subject: Re: [PATCH v3 05/14] sched/cpufreq: uclamp: add utilization clamping for FAIR tasks Date: Thu, 9 Aug 2018 16:30:59 +0100 Message-ID: <20180809153059.3cfw45qibcv5qqqk@darkstar> References: <20180806163946.28380-1-patrick.bellasi@arm.com> <20180806163946.28380-6-patrick.bellasi@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Vincent Guittot Cc: linux-kernel , "open list:THERMAL" , Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J. Wysocki" , viresh kumar , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , "Cc: Steve Muckle" , surenb@google.com List-Id: linux-pm@vger.kernel.org On 08-Aug 15:18, Vincent Guittot wrote: > Hi Patrick, Hi VIncent, > On Mon, 6 Aug 2018 at 18:40, Patrick Bellasi wrote: [...] > > +static inline unsigned int uclamp_util(unsigned int cpu, unsigned int util) > > using struct *rq rq instead of cpu as parameter would align > uclamp_util() interface with other cpu_util_*() interface and remove > some cpu_of(rq) and cpu_rq(cpu) Right, I've tired to keep consistency within the "uclamp_*" APIs... but what you suggests makes also sense and I've also already switched some other APIs to use *rq. I'll look into better aligning these APIs for the next posting. Cheers Patrick -- #include Patrick Bellasi