aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/cacheflush.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-14 22:25:32 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-14 22:25:32 -0400
commit7fbb2d3bdd33e58f54e360df0723d754f0b66153 (patch)
treec96b76a03479f5d882568c3a6e62a91e4ecb9dde /arch/sh/include/asm/cacheflush.h
parent0b445dcaf3adda5bec5cc494925bc689fcc59a0e (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/include/asm/cacheflush.h')
-rw-r--r--arch/sh/include/asm/cacheflush.h5
1 files changed, 3 insertions, 2 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
74void kmap_coherent_init(void); 75void kmap_coherent_init(void);
75void *kmap_coherent(struct page *page, unsigned long addr); 76void *kmap_coherent(struct page *page, unsigned long addr);
76void kunmap_coherent(void); 77void kunmap_coherent(void);