aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2012-09-13 00:14:34 -0400
committerTony Lindgren <tony@atomide.com>2012-09-13 00:14:34 -0400
commit3c5dc4a7daa6e64e39412fe9c7daa298834de623 (patch)
tree6783aa44b26cc4b65b7d186e8d1a9942ae16652a /arch/arm/mach-omap2
parentecc335fc970bb9249c6954cc958f24cec51f52d2 (diff)
ARM: OMAP4: wakeupgen: remove duplicate AUXCOREBOOT* read/write
The wakeupgen context-save code reads and stores the AUXCOREBOOT0 and AUXCOREBOOT1 register contents twice. This seems like a waste of time, so, remove the duplicates. Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/omap-wakeupgen.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c
index c3795c27a0b1..567f672ca37e 100644
--- a/arch/arm/mach-omap2/omap-wakeupgen.c
+++ b/arch/arm/mach-omap2/omap-wakeupgen.c
@@ -233,12 +233,6 @@ static inline void omap4_irq_save_context(void)
233 __raw_writel(val, sar_base + AUXCOREBOOT1_OFFSET); 233 __raw_writel(val, sar_base + AUXCOREBOOT1_OFFSET);
234 234
235 /* Save SyncReq generation logic */ 235 /* Save SyncReq generation logic */
236 val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
237 __raw_writel(val, sar_base + AUXCOREBOOT0_OFFSET);
238 val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
239 __raw_writel(val, sar_base + AUXCOREBOOT1_OFFSET);
240
241 /* Save SyncReq generation logic */
242 val = __raw_readl(wakeupgen_base + OMAP_PTMSYNCREQ_MASK); 236 val = __raw_readl(wakeupgen_base + OMAP_PTMSYNCREQ_MASK);
243 __raw_writel(val, sar_base + PTMSYNCREQ_MASK_OFFSET); 237 __raw_writel(val, sar_base + PTMSYNCREQ_MASK_OFFSET);
244 val = __raw_readl(wakeupgen_base + OMAP_PTMSYNCREQ_EN); 238 val = __raw_readl(wakeupgen_base + OMAP_PTMSYNCREQ_EN);