microblaze: Move cache macro from cache.h to cacheflush.h
authorMichal Simek <monstr@monstr.eu>
Thu, 15 Oct 2009 13:18:13 +0000 (15:18 +0200)
committerMichal Simek <monstr@monstr.eu>
Mon, 14 Dec 2009 07:45:00 +0000 (08:45 +0100)
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/cache.h
arch/microblaze/include/asm/cacheflush.h
arch/microblaze/kernel/process.c

index c209c47509d52435303c8b09008405fb14837afc..e52210891d78ed167a71e24ca35c1cd9abee6bf4 100644 (file)
 
 #define SMP_CACHE_BYTES        L1_CACHE_BYTES
 
-void _enable_icache(void);
-void _disable_icache(void);
-void _invalidate_icache(unsigned int addr);
-
-#define __enable_icache()              _enable_icache()
-#define __disable_icache()             _disable_icache()
-#define __invalidate_icache(addr)      _invalidate_icache(addr)
-
-void _enable_dcache(void);
-void _disable_dcache(void);
-void _invalidate_dcache(unsigned int addr);
-
-#define __enable_dcache()              _enable_dcache()
-#define __disable_dcache()             _disable_dcache()
-#define __invalidate_dcache(addr)      _invalidate_dcache(addr)
-
 #endif /* _ASM_MICROBLAZE_CACHE_H */
index 088076e657b32189ac16e6b9a9e3d0959740633a..1f04b911145407cc853f8ea5de59d6394783139e 100644 (file)
 #define flush_cache_vmap(start, end)           do { } while (0)
 #define flush_cache_vunmap(start, end)         do { } while (0)
 
+
+void _enable_icache(void);
+void _disable_icache(void);
+void _invalidate_icache(unsigned int addr);
+
+#define __enable_icache()              _enable_icache()
+#define __disable_icache()             _disable_icache()
+#define __invalidate_icache(addr)      _invalidate_icache(addr)
+
+void _enable_dcache(void);
+void _disable_dcache(void);
+void _invalidate_dcache(unsigned int addr);
+
+#define __enable_dcache()              _enable_dcache()
+#define __disable_dcache()             _disable_dcache()
+#define __invalidate_dcache(addr)      _invalidate_dcache(addr)
+
 struct page;
 struct mm_struct;
 struct vm_area_struct;
index c592d475b3d890a50061f8f3b265c4516457d749..812f1bf06c9e5cbfb2a88222974e2931d20f9a24 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/bitops.h>
 #include <asm/system.h>
 #include <asm/pgalloc.h>
+#include <asm/cacheflush.h>
 
 void show_regs(struct pt_regs *regs)
 {