From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Menon Subject: Re: [PM-OPP][PATCH 2/2] omap3: opp: make independent of cpufreq Date: Wed, 11 Aug 2010 05:43:43 -0500 Message-ID: <4C627EDF.2000404@gmail.com> References: <1281493018-29294-1-git-send-email-nm@ti.com> <1281493018-29294-3-git-send-email-nm@ti.com> <5A47E75E594F054BAF48C5E4FC4B92AB0324110879@dbde02.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-yx0-f174.google.com ([209.85.213.174]:50715 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714Ab0HKKnr (ORCPT ); Wed, 11 Aug 2010 06:43:47 -0400 Received: by yxg6 with SMTP id 6so4058965yxg.19 for ; Wed, 11 Aug 2010 03:43:47 -0700 (PDT) In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB0324110879@dbde02.ent.ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Gopinath, Thara" Cc: "Menon, Nishanth" , linux-omap , Eduardo Valentin , Kevin Hilman , Paul Walmsley , "Nayak, Rajendra" , "Premi, Sanjeev" , Tony Lindgren On 08/11/2010 04:12 AM, Gopinath, Thara wrote: > > >>> -----Original Message----- >>> From: Menon, Nishanth >>> Sent: Wednesday, August 11, 2010 7:47 AM >>> To: linux-omap >>> Cc: Menon, Nishanth; Eduardo Valentin; Kevin Hilman; Paul Walmsley; Nayak, Rajendra; Premi, Sanjeev; >>> Gopinath, Thara; Tony Lindgren >>> Subject: [PM-OPP][PATCH 2/2] omap3: opp: make independent of cpufreq >>> >>> Make opp3xx data which is registered with the opp layer >>> dependent purely on CONFIG_PM as opp layer and pm.c users >>> are CONFIG_PM dependent not cpufreq dependent. >>> so we rename the data definition to opp3xxx_data.c (inline with what >>> we have for omap2), also move the build definition to be under >>> the existing CONFIG_PM build instead of CPUFREQ. >>> >>> Cc: Eduardo Valentin >>> Cc: Kevin Hilman >>> Cc: Paul Walmsley >>> Cc: Rajendra Nayak >>> Cc: Sanjeev Premi >>> Cc: Thara Gopinath >>> Cc: Tony Lindgren >>> >>> Signed-off-by: Nishanth Menon >>> --- >>> Note: >>> This takes care of the discussion on opp file renaming and making >>> it independent of cpufreq, unless I missed something else >>> >>> arch/arm/mach-omap2/Makefile | 5 +---- >>> .../mach-omap2/{cpufreq34xx.c => opp3xxx_data.c} | 0 >>> 2 files changed, 1 insertions(+), 4 deletions(-) >>> rename arch/arm/mach-omap2/{cpufreq34xx.c => opp3xxx_data.c} (100%) > > Is this part of PM-OPP branch? Also I was thinking of reusing the same file for OMAP4. this defines the opp data base and would be part of pm-opp branch. the idea of rename was this: a) be clear that this is not dependent on cpufreq alone. b) use the same convention in arch/arm/mach-omap2/ like omap2's opp data files which could be converted to use the opp layer now instead of having it's own opp layer. and maybe hopefully omap1 as well.. c) when we do specific product build, it makes sense to have arch specific files as it makes not much reason to carry the omap4/2 definitions(even if init_data). > No reason why we should have a different file for OMAP4. So a better name than opp3xxx_data.c? why do we need to have it in the same file? Remember, 3630,3430 are under OMAP3 family, but omap4 is considered a different arch. Regards, Nishanth Menon [...]