diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 22:25:32 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 22:25:32 -0400 |
commit | 7fbb2d3bdd33e58f54e360df0723d754f0b66153 (patch) | |
tree | c96b76a03479f5d882568c3a6e62a91e4ecb9dde /arch/sh | |
parent | 0b445dcaf3adda5bec5cc494925bc689fcc59a0e (diff) |
sh: consolidate flush_dcache_mmap_lock/unlock() definitions.
All of the flush_dcache_mmap_lock()/flush_dcache_mmap_unlock()
definitions are identical across all CPUs, so just provide them
generically in asm/cacheflush.h.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/cacheflush.h | 5 | ||||
-rw-r--r-- | arch/sh/include/cpu-common/cpu/cacheflush.h | 2 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh2a/cpu/cacheflush.h | 2 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh3/cpu/cacheflush.h | 3 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/cacheflush.h | 4 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh5/cpu/cacheflush.h | 4 |
6 files changed, 3 insertions, 17 deletions
diff --git a/arch/sh/include/asm/cacheflush.h b/arch/sh/include/asm/cacheflush.h index e37654f7f545..52488eb6b739 100644 --- a/arch/sh/include/asm/cacheflush.h +++ b/arch/sh/include/asm/cacheflush.h | |||
@@ -20,8 +20,6 @@ | |||
20 | #define flush_dcache_page(page) do { } while (0) | 20 | #define flush_dcache_page(page) do { } while (0) |
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_dcache_mmap_lock(mapping) do { } while (0) | ||
24 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | ||
25 | #define flush_cache_sigtramp(vaddr) do { } while (0) | 23 | #define flush_cache_sigtramp(vaddr) do { } while (0) |
26 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) | 24 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) |
27 | #define __flush_wback_region(start, size) do { (void)(start); } while (0) | 25 | #define __flush_wback_region(start, size) do { (void)(start); } while (0) |
@@ -71,6 +69,9 @@ extern void copy_from_user_page(struct vm_area_struct *vma, | |||
71 | #define flush_cache_vmap(start, end) flush_cache_all() | 69 | #define flush_cache_vmap(start, end) flush_cache_all() |
72 | #define flush_cache_vunmap(start, end) flush_cache_all() | 70 | #define flush_cache_vunmap(start, end) flush_cache_all() |
73 | 71 | ||
72 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | ||
73 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | ||
74 | |||
74 | void kmap_coherent_init(void); | 75 | void kmap_coherent_init(void); |
75 | void *kmap_coherent(struct page *page, unsigned long addr); | 76 | void *kmap_coherent(struct page *page, unsigned long addr); |
76 | void kunmap_coherent(void); | 77 | void kunmap_coherent(void); |
diff --git a/arch/sh/include/cpu-common/cpu/cacheflush.h b/arch/sh/include/cpu-common/cpu/cacheflush.h index 0c38278509cb..b8c0a0a0c827 100644 --- a/arch/sh/include/cpu-common/cpu/cacheflush.h +++ b/arch/sh/include/cpu-common/cpu/cacheflush.h | |||
@@ -32,8 +32,6 @@ | |||
32 | #define flush_cache_range(vma, start, end) do { } while (0) | 32 | #define flush_cache_range(vma, start, end) do { } while (0) |
33 | #define flush_cache_page(vma, vmaddr, pfn) do { } while (0) | 33 | #define flush_cache_page(vma, vmaddr, pfn) do { } while (0) |
34 | #define flush_dcache_page(page) do { } while (0) | 34 | #define flush_dcache_page(page) do { } while (0) |
35 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | ||
36 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | ||
37 | #define flush_icache_range(start, end) do { } while (0) | 35 | #define flush_icache_range(start, end) do { } while (0) |
38 | #define flush_icache_page(vma,pg) do { } while (0) | 36 | #define flush_icache_page(vma,pg) do { } while (0) |
39 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) | 37 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) |
diff --git a/arch/sh/include/cpu-sh2a/cpu/cacheflush.h b/arch/sh/include/cpu-sh2a/cpu/cacheflush.h index b9eaa19325e2..e9ecb6d3dd34 100644 --- a/arch/sh/include/cpu-sh2a/cpu/cacheflush.h +++ b/arch/sh/include/cpu-sh2a/cpu/cacheflush.h | |||
@@ -23,8 +23,6 @@ | |||
23 | #define flush_cache_range(vma, start, end) do { } while (0) | 23 | #define flush_cache_range(vma, start, end) do { } while (0) |
24 | #define flush_cache_page(vma, vmaddr, pfn) do { } while (0) | 24 | #define flush_cache_page(vma, vmaddr, pfn) do { } while (0) |
25 | #define flush_dcache_page(page) do { } while (0) | 25 | #define flush_dcache_page(page) do { } while (0) |
26 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | ||
27 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | ||
28 | void flush_icache_range(unsigned long start, unsigned long end); | 26 | void flush_icache_range(unsigned long start, unsigned long end); |
29 | #define flush_icache_page(vma,pg) do { } while (0) | 27 | #define flush_icache_page(vma,pg) do { } while (0) |
30 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) | 28 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) |
diff --git a/arch/sh/include/cpu-sh3/cpu/cacheflush.h b/arch/sh/include/cpu-sh3/cpu/cacheflush.h index cf656a093770..98c7a7324551 100644 --- a/arch/sh/include/cpu-sh3/cpu/cacheflush.h +++ b/arch/sh/include/cpu-sh3/cpu/cacheflush.h | |||
@@ -25,9 +25,6 @@ void flush_dcache_page(struct page *pg); | |||
25 | void flush_icache_range(unsigned long start, unsigned long end); | 25 | void flush_icache_range(unsigned long start, unsigned long end); |
26 | void flush_icache_page(struct vm_area_struct *vma, struct page *page); | 26 | void flush_icache_page(struct vm_area_struct *vma, struct page *page); |
27 | 27 | ||
28 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | ||
29 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | ||
30 | |||
31 | /* SH3 has unified cache so no special action needed here */ | 28 | /* SH3 has unified cache so no special action needed here */ |
32 | #define flush_cache_sigtramp(vaddr) do { } while (0) | 29 | #define flush_cache_sigtramp(vaddr) do { } while (0) |
33 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) | 30 | #define flush_icache_user_range(vma,pg,adr,len) do { } while (0) |
diff --git a/arch/sh/include/cpu-sh4/cpu/cacheflush.h b/arch/sh/include/cpu-sh4/cpu/cacheflush.h index 0afcf94ae554..67d9bc98a589 100644 --- a/arch/sh/include/cpu-sh4/cpu/cacheflush.h +++ b/arch/sh/include/cpu-sh4/cpu/cacheflush.h | |||
@@ -24,10 +24,6 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start, | |||
24 | void flush_cache_page(struct vm_area_struct *vma, unsigned long addr, | 24 | void flush_cache_page(struct vm_area_struct *vma, unsigned long addr, |
25 | unsigned long pfn); | 25 | unsigned long pfn); |
26 | void flush_dcache_page(struct page *pg); | 26 | void flush_dcache_page(struct page *pg); |
27 | |||
28 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | ||
29 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | ||
30 | |||
31 | void flush_icache_range(unsigned long start, unsigned long end); | 27 | void flush_icache_range(unsigned long start, unsigned long end); |
32 | void flush_icache_user_range(struct vm_area_struct *vma, struct page *page, | 28 | void flush_icache_user_range(struct vm_area_struct *vma, struct page *page, |
33 | unsigned long addr, int len); | 29 | unsigned long addr, int len); |
diff --git a/arch/sh/include/cpu-sh5/cpu/cacheflush.h b/arch/sh/include/cpu-sh5/cpu/cacheflush.h index 8350cc7ed1c5..e9c26bdf3142 100644 --- a/arch/sh/include/cpu-sh5/cpu/cacheflush.h +++ b/arch/sh/include/cpu-sh5/cpu/cacheflush.h | |||
@@ -20,10 +20,6 @@ extern void flush_icache_user_range(struct vm_area_struct *vma, | |||
20 | int len); | 20 | int len); |
21 | 21 | ||
22 | #define flush_cache_dup_mm(mm) flush_cache_mm(mm) | 22 | #define flush_cache_dup_mm(mm) flush_cache_mm(mm) |
23 | |||
24 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | ||
25 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | ||
26 | |||
27 | #define flush_icache_page(vma, page) do { } while (0) | 23 | #define flush_icache_page(vma, page) do { } while (0) |
28 | 24 | ||
29 | #endif /* __ASSEMBLY__ */ | 25 | #endif /* __ASSEMBLY__ */ |