]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-sh/cache.h
[ARM] 4911/1: [AT91] LEDs on SAM9260-EK and SAM9261-EK boards
[linux-2.6-omap-h63xx.git] / include / asm-sh / cache.h
index 9a3cb6ba9d156622d0738be6fd18ba224de9cf4c..083419f47c65a060a6d7ba20ab50954afa55f09d 100644 (file)
@@ -9,17 +9,12 @@
 #define __ASM_SH_CACHE_H
 #ifdef __KERNEL__
 
+#include <linux/init.h>
 #include <asm/cpu/cache.h>
 
-#define SH_CACHE_VALID         1
-#define SH_CACHE_UPDATED       2
-#define SH_CACHE_COMBINED      4
-#define SH_CACHE_ASSOC         8
-
 #define L1_CACHE_BYTES         (1 << L1_CACHE_SHIFT)
-#define SMP_CACHE_BYTES                L1_CACHE_BYTES
 
-#define L1_CACHE_ALIGN(x)      (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
 
 #ifndef __ASSEMBLY__
 struct cache_info {
@@ -48,6 +43,9 @@ struct cache_info {
 
        unsigned long flags;
 };
+
+int __init detect_cpu_and_cache_system(void);
+
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL__ */
 #endif /* __ASM_SH_CACHE_H */