From: Tony Lindgren <tony@atomide.com>
To: Vivek Kutal <vivek.kutal@celunite.com>
Cc: linux-omap@vger.kernel.org,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: [PATCH 7/12] ARM: OMAP1: PM fixes for OMAP1
Date: Mon, 14 Jan 2008 16:56:58 -0800 [thread overview]
Message-ID: <20080115005657.GG7515@atomide.com> (raw)
In-Reply-To: <477CD78D.3060506@celunite.com>
[-- Attachment #1: Type: text/plain, Size: 617 bytes --]
* Vivek Kutal <vivek.kutal@celunite.com> [080103 04:38]:
> From c6969448dfaa5a58791ab6b4c0091fc56204eaab Mon Sep 17 00:00:00 2001
> From: Vivek Kutal <vivek.kutal@celunite.com>
> Date: Thu, 3 Jan 2008 17:22:56 +0530
> Subject: [PATCH] PM fixes for OMAP1
>
> This patch does the following
> - Fixes the omap_pm_idle() code so that we enter WFI mode in idle.
> - /sys/power/sleep_while_idle is created only when 32k timer is
> used.
>
> Signed-off-by: Vivek Kutal <vivek.kutal@celunite.com>
Vivek, looks like the tabs got converted to spaces in your refreshed
patch. Here's an updated version.
Tony
[-- Attachment #2: 0006-ARM-OMAP1-PM-fixes-for-OMAP1.patch --]
[-- Type: text/x-diff, Size: 2798 bytes --]
>From f25453c51244fa70b1102a0b90202f6842408625 Mon Sep 17 00:00:00 2001
From: Vivek Kutal <vivek.kutal@celunite.com>
Date: Wed, 12 Dec 2007 14:16:31 +0530
Subject: [PATCH] ARM: OMAP1: PM fixes for OMAP1
This patch does the following:
- Fixes the omap_pm_idle() code so that we enter WFI mode in idle.
- /sys/power/sleep_while_idle is created only when 32k timer is used
Signed-off-by: Vivek Kutal <vivek.kutal@celunite.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/mach-omap1/pm.c | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
Index: linux-omap-2.6/arch/arm/mach-omap1/pm.c
===================================================================
--- linux-omap-2.6.orig/arch/arm/mach-omap1/pm.c 2008-01-14 15:58:00.000000000 -0800
+++ linux-omap-2.6/arch/arm/mach-omap1/pm.c 2008-01-14 16:04:17.000000000 -0800
@@ -67,6 +67,8 @@ static unsigned int mpui730_sleep_save[M
static unsigned int mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_SIZE];
static unsigned int mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_SIZE];
+#ifdef CONFIG_OMAP_32K_TIMER
+
static unsigned short enable_dyn_sleep = 1;
static ssize_t omap_pm_sleep_while_idle_show(struct kset *kset, char *buf)
@@ -97,6 +99,8 @@ static struct subsys_attribute sleep_whi
.store = omap_pm_sleep_while_idle_store,
};
+#endif
+
extern struct kset power_subsys;
static void (*omap_sram_idle)(void) = NULL;
static void (*omap_sram_suspend)(unsigned long r0, unsigned long r1) = NULL;
@@ -111,9 +115,7 @@ void omap_pm_idle(void)
{
extern __u32 arm_idlect1_mask;
__u32 use_idlect1 = arm_idlect1_mask;
-#ifndef CONFIG_OMAP_MPU_TIMER
- int do_sleep;
-#endif
+ int do_sleep = 0;
local_irq_disable();
local_fiq_disable();
@@ -135,7 +137,6 @@ void omap_pm_idle(void)
use_idlect1 = use_idlect1 & ~(1 << 9);
#else
- do_sleep = 0;
while (enable_dyn_sleep) {
#ifdef CONFIG_CBUS_TAHVO_USB
@@ -148,6 +149,8 @@ void omap_pm_idle(void)
break;
}
+#endif
+
#ifdef CONFIG_OMAP_DM_TIMER
use_idlect1 = omap_dm_timer_modify_idlect_mask(use_idlect1);
#endif
@@ -175,7 +178,6 @@ void omap_pm_idle(void)
}
omap_sram_suspend(omap_readl(ARM_IDLECT1),
omap_readl(ARM_IDLECT2));
-#endif
local_fiq_enable();
local_irq_enable();
@@ -668,7 +670,10 @@ static struct platform_suspend_ops omap_
static int __init omap_pm_init(void)
{
+
+#ifdef CONFIG_OMAP_32K_TIMER
int error;
+#endif
printk("Power Management for TI OMAP.\n");
@@ -726,9 +731,11 @@ static int __init omap_pm_init(void)
omap_pm_init_proc();
#endif
+#ifdef CONFIG_OMAP_32K_TIMER
error = subsys_create_file(&power_subsys, &sleep_while_idle_attr);
if (error)
printk(KERN_ERR "subsys_create_file failed: %d\n", error);
+#endif
if (cpu_is_omap16xx()) {
/* configure LOW_PWR pin */
[-- Attachment #3: Type: text/plain, Size: 271 bytes --]
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
next parent reply other threads:[~2008-01-15 0:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1197957418-23913-1-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-2-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-3-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-4-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-5-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-6-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-7-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-8-git-send-email-tony@atomide.com>
[not found] ` <20071231143321.GD31777@flint.arm.linux.org.uk>
[not found] ` <477CD78D.3060506@celunite.com>
2008-01-15 0:56 ` Tony Lindgren [this message]
[not found] ` <1197957418-23913-9-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-10-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-11-git-send-email-tony@atomide.com>
[not found] ` <1197957418-23913-12-git-send-email-tony@atomide.com>
[not found] ` <20071231143519.GE31777@flint.arm.linux.org.uk>
2008-01-15 1:00 ` [PATCH 11/12] ARM: OMAP1: Palm Tungsten E board clean-up Tony Lindgren
2008-01-15 0:59 ` [PATCH 6/12] ARM: OMAP1: Use MMC multislot structures for Siemens SX1 board Tony Lindgren
2008-01-15 1:34 ` Tony Lindgren
2008-01-15 1:36 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080115005657.GG7515@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=vivek.kutal@celunite.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.