linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: setup_mm_for_reboot(): use flush_cache_louis()
@ 2012-11-06 21:12 Nicolas Pitre
  2012-11-06 21:41 ` Will Deacon
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Nicolas Pitre @ 2012-11-06 21:12 UTC (permalink / raw)
  To: linux-arm-kernel


... instead of flush_cache_all().  The later unconditionally flushes
the L2 cache on ARMv7 architectures such as Cortex A15 and A7 which
is costly and unnecessary in some scenarios where setup_mm_for_reboot()
is used.  If L2 has to be flushed as well, it should already be done
separately on other architectures anyway.

Signed-off-by: Nicolas Pitre <nico@linaro.org>

diff --git a/arch/arm/mm/idmap.c b/arch/arm/mm/idmap.c
index ab88ed4f8e..2c61085a10 100644
--- a/arch/arm/mm/idmap.c
+++ b/arch/arm/mm/idmap.c
@@ -104,7 +104,7 @@ early_initcall(init_static_idmap);
 void setup_mm_for_reboot(void)
 {
 	/* Clean and invalidate L1. */
-	flush_cache_all();
+	flush_cache_louis();
 
 	/* Switch to the identity mapping. */
 	cpu_switch_mm(idmap_pgd, &init_mm);

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-11-08 18:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 21:12 [PATCH] ARM: setup_mm_for_reboot(): use flush_cache_louis() Nicolas Pitre
2012-11-06 21:41 ` Will Deacon
2012-11-06 21:57 ` Santosh Shilimkar
2012-11-07  9:47   ` Lorenzo Pieralisi
2012-11-07 14:16     ` Santosh Shilimkar
2012-11-06 22:04 ` Russell King - ARM Linux
2012-11-06 22:53   ` Nicolas Pitre
2012-11-07  9:51     ` Russell King - ARM Linux
2012-11-07  9:51   ` Will Deacon
2012-11-07  9:56     ` Russell King - ARM Linux
2012-11-07 10:08       ` Will Deacon
2012-11-07 18:03         ` Nicolas Pitre
2012-11-07 18:41           ` Will Deacon
2012-11-07 20:10             ` Nicolas Pitre
2012-11-08 16:26               ` Will Deacon
2012-11-08 18:56                 ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).