From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753062AbcCIJkB (ORCPT ); Wed, 9 Mar 2016 04:40:01 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35100 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751599AbcCIJjq (ORCPT ); Wed, 9 Mar 2016 04:39:46 -0500 Date: Wed, 9 Mar 2016 16:39:27 +0700 From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, skannan@codeaurora.org, shilpa.bhat@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "cpufreq: postfix policy directory with the first CPU in related_cpus" Message-ID: <20160309093927.GI23015@vireshk-mac-ubuntu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 03-03-16, 14:51, Viresh Kumar wrote: > This reverts commit 3510fac45492 ("cpufreq: postfix policy directory > with the first CPU in related_cpus"). > > Earlier, the policy->kobj was added to the kobject core, before ->init() > callback was called for the cpufreq drivers. Which allowed those drivers > to add or remove, driver dependent, sysfs files/directories to the same > kobj from their ->init() and ->exit() callbacks. > > That isn't possible anymore after commit 3510fac45492 got applied. > > Now, there is no other clean alternative that people can adopt. > > Its better to revert the earlier commit to allow cpufreq drivers to > create/remove sysfs files from ->init() and ->exit() callbacks. Signed-off-by: Viresh Kumar Sorry about missing SoB (Just noticed it in bleeding-edge). -- viresh