Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751408Ab1FPEjd (ORCPT ); Thu, 16 Jun 2011 00:39:33 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44462 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737Ab1FPEjb convert rfc822-to-8bit (ORCPT ); Thu, 16 Jun 2011 00:39:31 -0400 From: "DebBarma, Tarun Kanti" To: "K, Ambresh" , Tony Lindgren CC: linux-omap , linux-kernel Date: Thu, 16 Jun 2011 10:09:24 +0530 Subject: RE: [PATCH] OMAP4: DMTIMER: enable autoidle mode Thread-Topic: [PATCH] OMAP4: DMTIMER: enable autoidle mode Thread-Index: AcwroQPNGppYm0I3Rje/athqHtK4FgAPfW4g Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB037B9AC19E@dbde02.ent.ti.com> References: <1308172355-1694-1-git-send-email-ambresh@ti.com> In-Reply-To: <1308172355-1694-1-git-send-email-ambresh@ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1810 Lines: 50 > -----Original Message----- > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap- > owner@vger.kernel.org] On Behalf Of K, Ambresh > Sent: Thursday, June 16, 2011 2:43 AM > To: Tony Lindgren > Cc: linux-omap; linux-kernel > Subject: [PATCH] OMAP4: DMTIMER: enable autoidle mode > > From: Ambresh K > > Currently autoidle is only enabled for OMAP2/3; by enabling autoidle, > the automatic L4 clock gating strategy is applied based on L4 activity, > otherwise L4 clock to module will be a free running. > > Signed-off-by: Ambresh K > --- > arch/arm/plat-omap/dmtimer.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c > index ee9f6eb..02d0f7a 100644 > --- a/arch/arm/plat-omap/dmtimer.c > +++ b/arch/arm/plat-omap/dmtimer.c > @@ -342,8 +342,8 @@ static void omap_dm_timer_reset(struct omap_dm_timer > *timer) > l |= 0x02 << 3; /* Set to smart-idle mode */ > l |= 0x2 << 8; /* Set clock activity to perserve f-clock on idle */ > > - /* Enable autoidle on OMAP2 / OMAP3 */ > - if (cpu_is_omap24xx() || cpu_is_omap34xx()) > + /* Enable autoidle on OMAP2 CPUs. */ > + if (cpu_class_is_omap2()) > l |= 0x1 << 0; BTW, in the hwmod adaptation series this is taken care by the framework. -- Tarun > > /* > -- > 1.6.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/