]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: move bfin_addr_dcachable() and friends into the cacheflush header...
authorMike Frysinger <vapier.adi@gmail.com>
Thu, 16 Oct 2008 15:33:53 +0000 (23:33 +0800)
committerBryan Wu <cooloney@kernel.org>
Thu, 16 Oct 2008 15:33:53 +0000 (23:33 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/cacheflush.h
arch/blackfin/include/asm/cplbinit.h
arch/blackfin/kernel/cplb-nompu/cplbinit.c

index 5ef9e35e9c3bce6b1444200320648166fca5f04d..c2d5b6c9fb4d9235bd1afd8a75f8fb4cf4473244 100644 (file)
@@ -85,4 +85,21 @@ do { memcpy(dst, src, len); \
 # define flush_dcache_page(page)                       do { } while (0)
 #endif
 
+extern unsigned long reserved_mem_dcache_on;
+extern unsigned long reserved_mem_icache_on;
+
+static inline int bfin_addr_dcachable(unsigned long addr)
+{
+#ifdef CONFIG_BFIN_DCACHE
+       if (addr < (_ramend - DMA_UNCACHED_REGION))
+               return 1;
+#endif
+
+       if (reserved_mem_dcache_on &&
+               addr >= _ramend && addr < physical_mem_end)
+               return 1;
+
+       return 0;
+}
+
 #endif                         /* _BLACKFIN_ICACHEFLUSH_H */
index d179b747ff034933b55b86172bd1bfdd6258f121..f845b41147ba209184182a79194383465cc20fb6 100644 (file)
@@ -87,23 +87,6 @@ extern u_long dpdt_swapcount_table[];
 
 #endif /* CONFIG_MPU */
 
-extern unsigned long reserved_mem_dcache_on;
-extern unsigned long reserved_mem_icache_on;
-
 extern void generate_cplb_tables(void);
 
-static inline int bfin_addr_dcachable(unsigned long addr)
-{
-#ifdef CONFIG_BFIN_DCACHE
-       if (addr < (_ramend - DMA_UNCACHED_REGION))
-               return 1;
-#endif
-
-       if (reserved_mem_dcache_on &&
-               addr >= _ramend && addr < physical_mem_end)
-               return 1;
-
-       return 0;
-}
-
 #endif
index 301252e84441cca9a345b8a5b05462c5c3c267b5..512f8c92ead511f2286a4a9f688763becd9ca8ed 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/module.h>
 
 #include <asm/blackfin.h>
+#include <asm/cacheflush.h>
 #include <asm/cplb.h>
 #include <asm/cplbinit.h>