Skip to contentSkip to conversation

OMAP4: DMTIMER: enable autoidle mode

PATCH In review Ambresh K 3 participants 3 messages Jun 15, 2011 – Jul 1, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Ambresh K

author
#0 lore raw

PATCH 1/1 OMAP4: DMTIMER: enable autoidle mode

From: Ambresh K <[email protected]>

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.

---
 arch/arm/plat-omap/dmtimer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/plat-omap/dmtimer.c +2 -2
index ee9f6eb..02d0f7a 100644
@@ -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;
 
 	/*
Signature · 1 line
1.6.0
#1 lore raw
Quoted 24 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] 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 <[email protected]>

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.

---
 arch/arm/plat-omap/dmtimer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/plat-omap/dmtimer.c +0 -0
index ee9f6eb..02d0f7a 100644

arch/arm/plat-omap/dmtimer.c static void omap_dm_timer_reset(struct omap_dm_timer · line 348

Quoted 9 lines
arch/arm/plat-omap/dmtimer.c +2 -2
@@ -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

Quoted 9 lines
arch/arm/plat-omap/dmtimer.c +0 -1
 	/*
--

1.6.0

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to a message not in the archive
Quoted 6 lines · K, Ambresh
Quoted 4 lines · Tarun Kanti
Quoted 4 lines

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.

Applying this into devel-fixes.

Quoted 9 lines
Quoted 7 lines

arch/arm/plat-omap/dmtimer.c static void omap_dm_timer_reset(struct omap_dm_timer *timer) · line 347

Quoted 5 lines
arch/arm/plat-omap/dmtimer.c +2 -2
-     /* 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.

Ok!

That should be a trivial update. Let's first merge this fix so L4 can autoidle on omap4.

Tony