public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH (sh-2.6)] sh: avoid to flush all cache in sys_cacheflush
@ 2010-11-17  6:51 Giuseppe CAVALLARO
  2010-11-17  8:18 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Giuseppe CAVALLARO @ 2010-11-17  6:51 UTC (permalink / raw)
  To: linux-sh

Calling sys_cacheflush with ICACHE we can direclty flush
the icache without invoking the flush_cache_all function.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
---
 arch/sh/kernel/sys_sh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c
index 81f5837..8c6a350 100644
--- a/arch/sh/kernel/sys_sh.c
+++ b/arch/sh/kernel/sys_sh.c
@@ -88,7 +88,7 @@ asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op)
 	}
 
 	if (op & CACHEFLUSH_I)
-		flush_cache_all();
+		flush_icache_range(addr, addr+len);
 
 	up_read(&current->mm->mmap_sem);
 	return 0;
-- 
1.5.5.6


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

* Re: [PATCH (sh-2.6)] sh: avoid to flush all cache in sys_cacheflush
  2010-11-17  6:51 [PATCH (sh-2.6)] sh: avoid to flush all cache in sys_cacheflush Giuseppe CAVALLARO
@ 2010-11-17  8:18 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2010-11-17  8:18 UTC (permalink / raw)
  To: linux-sh

On Wed, Nov 17, 2010 at 07:51:08AM +0100, Giuseppe CAVALLARO wrote:
> Calling sys_cacheflush with ICACHE we can direclty flush
> the icache without invoking the flush_cache_all function.

On Wed, Nov 17, 2010 at 07:51:52AM +0100, Giuseppe CAVALLARO wrote:
> This patch fixes the following error obtained when
> compile the Kernel with the VSYSCALL support enabled:

These both look good, I'll add them to the .37 queue, thanks!

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

end of thread, other threads:[~2010-11-17  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17  6:51 [PATCH (sh-2.6)] sh: avoid to flush all cache in sys_cacheflush Giuseppe CAVALLARO
2010-11-17  8:18 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox