[PATCH 10/17] omap4: pm: Add L2 cache lowpower support

STALE5643d

2 messages, 2 authors, 2011-03-03 · open the first message on its own page

[PATCH 10/17] omap4: pm: Add L2 cache lowpower support

From: Kevin Hilman <hidden>
Date: 2011-03-02 22:36:18

Santosh Shilimkar [off-list ref] writes:
quoted hunk
When MPUSS hits off-mode e, L2 cache is lost. This patch adds L2X0
necessary maintenance operations and context restoration in the
low power code.

Signed-off-by: Santosh Shilimkar <redacted>
Reviewed-by: Kevin Hilman <redacted>
---
 arch/arm/mach-omap2/omap4-mpuss-lowpower.c |   11 +++++
 arch/arm/mach-omap2/omap4-sar-layout.h     |    2 +
 arch/arm/mach-omap2/sleep44xx.S            |   64 ++++++++++++++++++++++++++++
 3 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
index a30f19b..bff768f 100644
--- a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
+++ b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
@@ -49,6 +49,7 @@
 #include <asm/system.h>
 #include <asm/irq.h>
 #include <asm/hardware/gic.h>
+#include <asm/hardware/cache-l2x0.h>
 
 #include <plat/omap44xx.h>
 #include <mach/omap4-common.h>
@@ -341,6 +342,7 @@ int __init omap4_mpuss_init(void)
 {
 	struct omap4_cpu_pm_info *pm_info;
 	u8 i;
+	u32 val;
This will cause an 'unused variable' compiler warning when
!CONFIG_CACHE_L2X0

[...]

Kevin

[PATCH 10/17] omap4: pm: Add L2 cache lowpower support

From: Santosh Shilimkar <hidden>
Date: 2011-03-03 16:30:00

-----Original Message-----
From: Kevin Hilman [mailto:khilman at ti.com]
Sent: Thursday, March 03, 2011 4:06 AM
To: Santosh Shilimkar
Cc: linux-omap at vger.kernel.org; linux-arm-kernel at lists.infradead.org
Subject: Re: [PATCH 10/17] omap4: pm: Add L2 cache lowpower support

Santosh Shilimkar [off-list ref] writes:
quoted
When MPUSS hits off-mode e, L2 cache is lost. This patch adds L2X0
necessary maintenance operations and context restoration in the
low power code.

Signed-off-by: Santosh Shilimkar <redacted>
Reviewed-by: Kevin Hilman <redacted>
---
 arch/arm/mach-omap2/omap4-mpuss-lowpower.c |   11 +++++
 arch/arm/mach-omap2/omap4-sar-layout.h     |    2 +
 arch/arm/mach-omap2/sleep44xx.S            |   64
++++++++++++++++++++++++++++
quoted
 3 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
quoted
index a30f19b..bff768f 100644
--- a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
+++ b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
@@ -49,6 +49,7 @@
 #include <asm/system.h>
 #include <asm/irq.h>
 #include <asm/hardware/gic.h>
+#include <asm/hardware/cache-l2x0.h>

 #include <plat/omap44xx.h>
 #include <mach/omap4-common.h>
@@ -341,6 +342,7 @@ int __init omap4_mpuss_init(void)
 {
 	struct omap4_cpu_pm_info *pm_info;
 	u8 i;
+	u32 val;
This will cause an 'unused variable' compiler warning when
!CONFIG_CACHE_L2X0
Good catch. Fixed
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help