OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8496533
)
sh: avoid to flush all cache in sys_cacheflush
author
Giuseppe CAVALLARO
<peppe.cavallaro@st.com>
Wed, 17 Nov 2010 06:51:08 +0000
(06:51 +0000)
committer
Paul Mundt
<lethal@linux-sh.org>
Wed, 17 Nov 2010 08:55:30 +0000
(17:55 +0900)
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>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/sys_sh.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/sys_sh.c
b/arch/sh/kernel/sys_sh.c
index
81f5837
..
8c6a350
100644
(file)
--- 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(¤t->mm->mmap_sem);
return 0;