From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832Ab3ILKg1 (ORCPT ); Thu, 12 Sep 2013 06:36:27 -0400 Received: from hydra.sisk.pl ([212.160.235.94]:48922 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495Ab3ILKgZ (ORCPT ); Thu, 12 Sep 2013 06:36:25 -0400 From: "Rafael J. Wysocki" To: Viresh Kumar Cc: "Srivatsa S. Bhat" , Stephen Warren , Lists linaro-kernel , Patch Tracking , "cpufreq@vger.kernel.org" , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List Subject: Re: [PATCH 5/5] cpufreq: use correct values of cpus in __cpufreq_remove_dev_finish() Date: Thu, 12 Sep 2013 12:47:29 +0200 Message-ID: <5076102.HGJgP9ualc@vostro.rjw.lan> User-Agent: KMail/4.10.5 (Linux/3.11.0+; KDE/4.10.5; x86_64; ; ) In-Reply-To: References: <52316A40.4050600@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, September 12, 2013 02:51:58 PM Viresh Kumar wrote: > On 12 September 2013 12:46, Srivatsa S. Bhat > wrote: > > That sounds good! Even the naming is much better, it conveys the intent > > clearly. > > Folded below change in my patch (attached): Please resend. And I honestly don't think that [1-3/5] are fixes and [4/5] is not needed any more. > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > index b556d46..23f5845 100644 > --- a/drivers/cpufreq/cpufreq.c > +++ b/drivers/cpufreq/cpufreq.c > @@ -1111,7 +1111,7 @@ static int > cpufreq_nominate_new_policy_cpu(struct cpufreq_policy *policy, > int ret; > > /* first sibling now owns the new sysfs dir */ > - cpu_dev = get_cpu_device(cpumask_first(policy->cpus)); > + cpu_dev = get_cpu_device(cpumask_any_but(policy->cpus, old_cpu)); > > /* Don't touch sysfs files during light-weight tear-down */ > if (frozen) > > -- -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.