From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Srivatsa S. Bhat" Subject: Re: [PATCH] cpufreq: move policy kobj to policy->cpu at resume Date: Thu, 10 Jul 2014 16:52:18 +0530 Message-ID: <53BE776A.6060401@mit.edu> References: <3b19a388891fe997c6c7bc14463453c27312edfa.1404968266.git.viresh.kumar@linaro.org> <53BE75EE.6010200@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: stable-owner@vger.kernel.org To: Viresh Kumar Cc: "Rafael J. Wysocki" , Lists linaro-kernel , "linux-pm@vger.kernel.org" , Arvind Chauhan , Saravana Kannan , "Bu, Yitian" , Stable List-Id: linux-pm@vger.kernel.org On 07/10/2014 04:50 PM, Viresh Kumar wrote: > On 10 July 2014 16:45, Srivatsa S. Bhat wrote: >> Looks good to me. But I think it would be better to move the invocation of >> kobject_move() to update_policy_cpu() itself, so that update_policy_cpu() >> will do all the work involved in updating the policy->cpu, as its name suggests. > > Its called from remove path as well .. > I know.. That's why it makes even more sense to consolidate all the work into one function. We can restructure cpufreq_nominate_new_policy_cpu() such that the kobject_move() can be moved to update_policy_cpu(). Regards, Srivatsa S. Bhat