From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Srivatsa S. Bhat" Subject: Re: [PATCH 5/5] cpufreq: use correct values of cpus in __cpufreq_remove_dev_finish() Date: Thu, 12 Sep 2013 12:46:16 +0530 Message-ID: <52316A40.4050600@linux.vnet.ibm.com> References: <8f777cc6b41b2fed4bf71ce2adc36800353d5738.1378963070.git.viresh.kumar@linaro.org> <523161D1.9040005@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: cpufreq-owner@vger.kernel.org To: Viresh Kumar Cc: "Rafael J. Wysocki" , Stephen Warren , Lists linaro-kernel , Patch Tracking , "cpufreq@vger.kernel.org" , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List List-Id: linux-pm@vger.kernel.org On 09/12/2013 12:26 PM, Viresh Kumar wrote: > On 12 September 2013 12:17, Viresh Kumar wrote: >> Currently cpus never become zero as we clear mask only while there are >> more than one cpu in a policy... Wait let me see what's the cleanest way >> to get this fixed.. > > Okay, simply replace cpumask_first() with cpumask_any_but() in > cpufreq_nominate_new_policy_cpu() :) > That sounds good! Even the naming is much better, it conveys the intent clearly. Regards, Srivatsa S. Bhat