]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: consolidate flush_dcache_mmap_lock/unlock() definitions.
authorPaul Mundt <lethal@linux-sh.org>
Sat, 15 Aug 2009 02:25:32 +0000 (11:25 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 15 Aug 2009 02:25:32 +0000 (11:25 +0900)
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>
arch/sh/include/asm/cacheflush.h
arch/sh/include/cpu-common/cpu/cacheflush.h
arch/sh/include/cpu-sh2a/cpu/cacheflush.h
arch/sh/include/cpu-sh3/cpu/cacheflush.h
arch/sh/include/cpu-sh4/cpu/cacheflush.h
arch/sh/include/cpu-sh5/cpu/cacheflush.h

index e37654f7f54552f6ff84e06c2a0dd09a46750be8..52488eb6b7398214fd212ae010b6f1ff17040872 100644 (file)
@@ -20,8 +20,6 @@
 #define flush_dcache_page(page)                        do { } while (0)
 #define flush_icache_range(start, end)         do { } while (0)
 #define flush_icache_page(vma,pg)              do { } while (0)
-#define flush_dcache_mmap_lock(mapping)                do { } while (0)
-#define flush_dcache_mmap_unlock(mapping)      do { } while (0)
 #define flush_cache_sigtramp(vaddr)            do { } while (0)
 #define flush_icache_user_range(vma,pg,adr,len)        do { } while (0)
 #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,
 #define flush_cache_vmap(start, end)           flush_cache_all()
 #define flush_cache_vunmap(start, end)         flush_cache_all()
 
+#define flush_dcache_mmap_lock(mapping)                do { } while (0)
+#define flush_dcache_mmap_unlock(mapping)      do { } while (0)
+
 void kmap_coherent_init(void);
 void *kmap_coherent(struct page *page, unsigned long addr);
 void kunmap_coherent(void);
index 0c38278509cb3533f2e45e77019e81c909371d61..b8c0a0a0c827df318e1551b1f2d1c800e47d1059 100644 (file)
@@ -32,8 +32,6 @@
 #define flush_cache_range(vma, start, end)     do { } while (0)
 #define flush_cache_page(vma, vmaddr, pfn)     do { } while (0)
 #define flush_dcache_page(page)                        do { } while (0)
-#define flush_dcache_mmap_lock(mapping)                do { } while (0)
-#define flush_dcache_mmap_unlock(mapping)      do { } while (0)
 #define flush_icache_range(start, end)         do { } while (0)
 #define flush_icache_page(vma,pg)              do { } while (0)
 #define flush_icache_user_range(vma,pg,adr,len)        do { } while (0)
index b9eaa19325e205f666b0eba5434c6364490d72af..e9ecb6d3dd344eff02160c9d9ad54aa7bc15eaaa 100644 (file)
@@ -23,8 +23,6 @@
 #define flush_cache_range(vma, start, end)     do { } while (0)
 #define flush_cache_page(vma, vmaddr, pfn)     do { } while (0)
 #define flush_dcache_page(page)                        do { } while (0)
-#define flush_dcache_mmap_lock(mapping)                do { } while (0)
-#define flush_dcache_mmap_unlock(mapping)      do { } while (0)
 void flush_icache_range(unsigned long start, unsigned long end);
 #define flush_icache_page(vma,pg)              do { } while (0)
 #define flush_icache_user_range(vma,pg,adr,len)        do { } while (0)
index cf656a093770aba30831bcc0291d9082ffa062f4..98c7a73245515dde19991618a99551c6a4e9714e 100644 (file)
@@ -25,9 +25,6 @@ void flush_dcache_page(struct page *pg);
 void flush_icache_range(unsigned long start, unsigned long end);
 void flush_icache_page(struct vm_area_struct *vma, struct page *page);
 
-#define flush_dcache_mmap_lock(mapping)                do { } while (0)
-#define flush_dcache_mmap_unlock(mapping)      do { } while (0)
-
 /* SH3 has unified cache so no special action needed here */
 #define flush_cache_sigtramp(vaddr)            do { } while (0)
 #define flush_icache_user_range(vma,pg,adr,len)        do { } while (0)
index 0afcf94ae5543d668751a79a3efd65680ddc0b91..67d9bc98a589d87be10a846d26219a2698d9ab23 100644 (file)
@@ -24,10 +24,6 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
 void flush_cache_page(struct vm_area_struct *vma, unsigned long addr,
                      unsigned long pfn);
 void flush_dcache_page(struct page *pg);
-
-#define flush_dcache_mmap_lock(mapping)                do { } while (0)
-#define flush_dcache_mmap_unlock(mapping)      do { } while (0)
-
 void flush_icache_range(unsigned long start, unsigned long end);
 void flush_icache_user_range(struct vm_area_struct *vma, struct page *page,
                             unsigned long addr, int len);
index 8350cc7ed1c5dbb01578073c95f251e6a0cabde0..e9c26bdf314253cbbbbadd6864c073be10cfbb80 100644 (file)
@@ -20,10 +20,6 @@ extern void flush_icache_user_range(struct vm_area_struct *vma,
                                    int len);
 
 #define flush_cache_dup_mm(mm) flush_cache_mm(mm)
-
-#define flush_dcache_mmap_lock(mapping)                do { } while (0)
-#define flush_dcache_mmap_unlock(mapping)      do { } while (0)
-
 #define flush_icache_page(vma, page)   do { } while (0)
 
 #endif /* __ASSEMBLY__ */