[PATCH 19/23] dove: power management support for iwmmx coprocessor
Brad Figg
brad.figg at canonical.com
Thu Aug 27 23:20:59 UTC 2009
From: Saeed Bishara <saeed at marvell.com>
Signed-off-by: Saeed Bishara <saeed at marvell.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
arch/arm/mach-dove/pm.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-dove/pm.c b/arch/arm/mach-dove/pm.c
index 9e52a9c..611d6b8 100755
--- a/arch/arm/mach-dove/pm.c
+++ b/arch/arm/mach-dove/pm.c
@@ -622,6 +622,12 @@ void dove_deepidle(void)
reg |= (PMU_SIGNAL_0 << PMU_SIG_7_SLCT_CTRL_OFFS);
MV_REG_WRITE(PMU_SIG_SLCT_CTRL_0_REG, reg);
+#ifdef CONFIG_IWMMXT
+ /* force any iWMMXt context to ram **/
+ if (elf_hwcap & HWCAP_IWMMXT)
+ iwmmxt_task_disable(NULL);
+#endif
+
#if defined(CONFIG_VFP)
vfp_save();
#endif
@@ -658,6 +664,12 @@ void dove_standby(void)
reg |= (PMU_SIGNAL_BLINK/*PMU_SIGNAL_0*/ << PMU_SIG_7_SLCT_CTRL_OFFS);
MV_REG_WRITE(PMU_SIG_SLCT_CTRL_0_REG, reg);
+#ifdef CONFIG_IWMMXT
+ /* force any iWMMXt context to ram **/
+ if (elf_hwcap & HWCAP_IWMMXT)
+ iwmmxt_task_disable(NULL);
+#endif
+
/* Save generic list of registes */
pm_registers_action(SAVE);
--
1.6.0.4
More information about the kernel-team
mailing list