aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-14 22:38:05 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-14 22:38:05 -0400
commit916e97834e023f89b31f796b53cc9c7956e7fe17 (patch)
tree60655c29dd9c78ee920a7dd73a1f7dff3dd85cce /arch/sh
parent7fbb2d3bdd33e58f54e360df0723d754f0b66153 (diff)
sh: Kill off unused flush_icache_user_range().
We use flush_cache_page() outright in copy_to_user_page(), and nothing else needs it, so just kill it off. SH-5 still defines its own version, but that too will go away in the same fashion once it converts over. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/cacheflush.h1
-rw-r--r--arch/sh/include/cpu-common/cpu/cacheflush.h1
-rw-r--r--arch/sh/include/cpu-sh2a/cpu/cacheflush.h1
-rw-r--r--arch/sh/include/cpu-sh3/cpu/cacheflush.h1
-rw-r--r--arch/sh/include/cpu-sh4/cpu/cacheflush.h2
-rw-r--r--arch/sh/include/cpu-sh5/cpu/cacheflush.h3
-rw-r--r--arch/sh/mm/cache-sh4.c14
-rw-r--r--arch/sh/mm/cache-sh5.c2
8 files changed, 1 insertions, 24 deletions
diff --git a/arch/sh/include/asm/cacheflush.h b/arch/sh/include/asm/cacheflush.h
index 52488eb6b739..b1cf30f423af 100644
--- a/arch/sh/include/asm/cacheflush.h
+++ b/arch/sh/include/asm/cacheflush.h
@@ -21,7 +21,6 @@
21#define flush_icache_range(start, end) do { } while (0) 21#define flush_icache_range(start, end) do { } while (0)
22#define flush_icache_page(vma,pg) do { } while (0) 22#define flush_icache_page(vma,pg) do { } while (0)
23#define flush_cache_sigtramp(vaddr) do { } while (0) 23#define flush_cache_sigtramp(vaddr) do { } while (0)
24#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
25#define __flush_wback_region(start, size) do { (void)(start); } while (0) 24#define __flush_wback_region(start, size) do { (void)(start); } while (0)
26#define __flush_purge_region(start, size) do { (void)(start); } while (0) 25#define __flush_purge_region(start, size) do { (void)(start); } while (0)
27#define __flush_invalidate_region(start, size) do { (void)(start); } while (0) 26#define __flush_invalidate_region(start, size) do { (void)(start); } while (0)
diff --git a/arch/sh/include/cpu-common/cpu/cacheflush.h b/arch/sh/include/cpu-common/cpu/cacheflush.h
index b8c0a0a0c827..5dc3736218e7 100644
--- a/arch/sh/include/cpu-common/cpu/cacheflush.h
+++ b/arch/sh/include/cpu-common/cpu/cacheflush.h
@@ -34,7 +34,6 @@
34#define flush_dcache_page(page) do { } while (0) 34#define flush_dcache_page(page) do { } while (0)
35#define flush_icache_range(start, end) do { } while (0) 35#define flush_icache_range(start, end) do { } while (0)
36#define flush_icache_page(vma,pg) do { } while (0) 36#define flush_icache_page(vma,pg) do { } while (0)
37#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
38#define flush_cache_sigtramp(vaddr) do { } while (0) 37#define flush_cache_sigtramp(vaddr) do { } while (0)
39 38
40#endif /* __ASM_CPU_SH2_CACHEFLUSH_H */ 39#endif /* __ASM_CPU_SH2_CACHEFLUSH_H */
diff --git a/arch/sh/include/cpu-sh2a/cpu/cacheflush.h b/arch/sh/include/cpu-sh2a/cpu/cacheflush.h
index e9ecb6d3dd34..32a529187a38 100644
--- a/arch/sh/include/cpu-sh2a/cpu/cacheflush.h
+++ b/arch/sh/include/cpu-sh2a/cpu/cacheflush.h
@@ -25,7 +25,6 @@
25#define flush_dcache_page(page) do { } while (0) 25#define flush_dcache_page(page) do { } while (0)
26void flush_icache_range(unsigned long start, unsigned long end); 26void flush_icache_range(unsigned long start, unsigned long end);
27#define flush_icache_page(vma,pg) do { } while (0) 27#define flush_icache_page(vma,pg) do { } while (0)
28#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
29#define flush_cache_sigtramp(vaddr) do { } while (0) 28#define flush_cache_sigtramp(vaddr) do { } while (0)
30 29
31#endif /* __ASM_CPU_SH2A_CACHEFLUSH_H */ 30#endif /* __ASM_CPU_SH2A_CACHEFLUSH_H */
diff --git a/arch/sh/include/cpu-sh3/cpu/cacheflush.h b/arch/sh/include/cpu-sh3/cpu/cacheflush.h
index 98c7a7324551..0f5cf5460d05 100644
--- a/arch/sh/include/cpu-sh3/cpu/cacheflush.h
+++ b/arch/sh/include/cpu-sh3/cpu/cacheflush.h
@@ -27,7 +27,6 @@ void flush_icache_page(struct vm_area_struct *vma, struct page *page);
27 27
28/* SH3 has unified cache so no special action needed here */ 28/* SH3 has unified cache so no special action needed here */
29#define flush_cache_sigtramp(vaddr) do { } while (0) 29#define flush_cache_sigtramp(vaddr) do { } while (0)
30#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
31 30
32#else 31#else
33#include <cpu-common/cpu/cacheflush.h> 32#include <cpu-common/cpu/cacheflush.h>
diff --git a/arch/sh/include/cpu-sh4/cpu/cacheflush.h b/arch/sh/include/cpu-sh4/cpu/cacheflush.h
index 67d9bc98a589..d6bd396d7dfb 100644
--- a/arch/sh/include/cpu-sh4/cpu/cacheflush.h
+++ b/arch/sh/include/cpu-sh4/cpu/cacheflush.h
@@ -25,8 +25,6 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long addr,
25 unsigned long pfn); 25 unsigned long pfn);
26void flush_dcache_page(struct page *pg); 26void flush_dcache_page(struct page *pg);
27void flush_icache_range(unsigned long start, unsigned long end); 27void flush_icache_range(unsigned long start, unsigned long end);
28void flush_icache_user_range(struct vm_area_struct *vma, struct page *page,
29 unsigned long addr, int len);
30 28
31#define flush_icache_page(vma,pg) do { } while (0) 29#define flush_icache_page(vma,pg) do { } while (0)
32 30
diff --git a/arch/sh/include/cpu-sh5/cpu/cacheflush.h b/arch/sh/include/cpu-sh5/cpu/cacheflush.h
index e9c26bdf3142..740d10a316ef 100644
--- a/arch/sh/include/cpu-sh5/cpu/cacheflush.h
+++ b/arch/sh/include/cpu-sh5/cpu/cacheflush.h
@@ -15,9 +15,6 @@ extern void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
15extern void flush_cache_page(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn); 15extern void flush_cache_page(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn);
16extern void flush_dcache_page(struct page *pg); 16extern void flush_dcache_page(struct page *pg);
17extern void flush_icache_range(unsigned long start, unsigned long end); 17extern void flush_icache_range(unsigned long start, unsigned long end);
18extern void flush_icache_user_range(struct vm_area_struct *vma,
19 struct page *page, unsigned long addr,
20 int len);
21 18
22#define flush_cache_dup_mm(mm) flush_cache_mm(mm) 19#define flush_cache_dup_mm(mm) flush_cache_mm(mm)
23#define flush_icache_page(vma, page) do { } while (0) 20#define flush_icache_page(vma, page) do { } while (0)
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c
index 4466787a52aa..b5860535e61f 100644
--- a/arch/sh/mm/cache-sh4.c
+++ b/arch/sh/mm/cache-sh4.c
@@ -401,20 +401,6 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
401 } 401 }
402} 402}
403 403
404/*
405 * flush_icache_user_range
406 * @vma: VMA of the process
407 * @page: page
408 * @addr: U0 address
409 * @len: length of the range (< page size)
410 */
411void flush_icache_user_range(struct vm_area_struct *vma,
412 struct page *page, unsigned long addr, int len)
413{
414 flush_cache_page(vma, addr, page_to_pfn(page));
415 mb();
416}
417
418/** 404/**
419 * __flush_cache_4096 405 * __flush_cache_4096
420 * 406 *
diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c
index 576cad04b11b..a50d23caf015 100644
--- a/arch/sh/mm/cache-sh5.c
+++ b/arch/sh/mm/cache-sh5.c
@@ -655,7 +655,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
655 * range following a poke into the program text through the ptrace() call 655 * range following a poke into the program text through the ptrace() call
656 * from another process (e.g. for BRK instruction insertion). 656 * from another process (e.g. for BRK instruction insertion).
657 */ 657 */
658void flush_icache_user_range(struct vm_area_struct *vma, 658static void flush_icache_user_range(struct vm_area_struct *vma,
659 struct page *page, unsigned long addr, int len) 659 struct page *page, unsigned long addr, int len)
660{ 660{
661 661