From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH] cpufreq: governors: Remove duplicate check of target freq in supported range Date: Wed, 28 Aug 2013 11:05:52 +0530 Message-ID: References: <521BA068.8030003@semaphore.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <521BA068.8030003@semaphore.gr> Sender: linux-kernel-owner@vger.kernel.org To: Stratos Karafotis Cc: "Rafael J. Wysocki" , "cpufreq@vger.kernel.org" , "linux-pm@vger.kernel.org" , LKML List-Id: linux-pm@vger.kernel.org On 27 August 2013 00:07, Stratos Karafotis wrote: > Function __cpufreq_driver_target checks if target_freq is within > policy->min and policy->max range. generic_powersave_bias_target also > checks if target_freq is valid through cpufreq_frequency_table_target > call. So, drop the unnecessary duplicate check in *_check_cpu functions. > > Signed-off-by: Stratos Karafotis > --- > drivers/cpufreq/cpufreq_conservative.c | 4 ---- > drivers/cpufreq/cpufreq_ondemand.c | 3 --- > 2 files changed, 7 deletions(-) Acked-by: Viresh Kumar