Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751786AbdG1IZQ (ORCPT ); Fri, 28 Jul 2017 04:25:16 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:34432 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbdG1IZN (ORCPT ); Fri, 28 Jul 2017 04:25:13 -0400 Date: Fri, 28 Jul 2017 13:55:09 +0530 From: Viresh Kumar To: Dietmar Eggemann Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux@arm.linux.org.uk, Greg Kroah-Hartman , Russell King , Catalin Marinas , Will Deacon , Juri Lelli , Vincent Guittot , Peter Zijlstra , Morten Rasmussen , "Rafael J . Wysocki" , Sudeep Holla Subject: Re: [PATCH v3 03/10] cpufreq: arm_big_little: invoke frequency-invariance setter function Message-ID: <20170728082509.GA352@vireshk-i7> References: <20170727193312.9849-1-dietmar.eggemann@arm.com> <20170727193312.9849-4-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170727193312.9849-4-dietmar.eggemann@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1592 Lines: 46 On 27-07-17, 20:33, Dietmar Eggemann wrote: > Call the frequency-invariance setter function arch_set_freq_scale() > if the new frequency has been successfully set which is indicated by > bL_cpufreq_set_rate() returning 0. > > Cc: Rafael J. Wysocki > Cc: Viresh Kumar > Cc: Sudeep Holla > Signed-off-by: Dietmar Eggemann > --- > drivers/cpufreq/arm_big_little.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c > index ea6d62547b10..8880f8d9d09d 100644 > --- a/drivers/cpufreq/arm_big_little.c > +++ b/drivers/cpufreq/arm_big_little.c > @@ -213,6 +213,7 @@ static int bL_cpufreq_set_target(struct cpufreq_policy *policy, > { > u32 cpu = policy->cpu, cur_cluster, new_cluster, actual_cluster; > unsigned int freqs_new; > + int ret; > > cur_cluster = cpu_to_cluster(cpu); > new_cluster = actual_cluster = per_cpu(physical_cluster, cpu); > @@ -229,7 +230,14 @@ static int bL_cpufreq_set_target(struct cpufreq_policy *policy, > } > } > > - return bL_cpufreq_set_rate(cpu, actual_cluster, new_cluster, freqs_new); > + ret = bL_cpufreq_set_rate(cpu, actual_cluster, new_cluster, freqs_new); > + > + if (!ret) { > + arch_set_freq_scale(policy->related_cpus, freqs_new, > + policy->cpuinfo.max_freq); > + } > + > + return ret; > } > > static inline u32 get_table_count(struct cpufreq_frequency_table *table) Acked-by: Viresh Kumar -- viresh