]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/cache.h
Merge branch 'upstream' into for-linus
[karo-tx-linux.git] / include / linux / cache.h
index 4552504c02289239953aab738adede76c8da20f3..4c570653ab84f9822ba9e1e1f19a41242c16b74f 100644 (file)
@@ -31,7 +31,7 @@
 #ifndef __cacheline_aligned
 #define __cacheline_aligned                                    \
   __attribute__((__aligned__(SMP_CACHE_BYTES),                 \
-                __section__(".data.cacheline_aligned")))
+                __section__(".data..cacheline_aligned")))
 #endif /* __cacheline_aligned */
 
 #ifndef __cacheline_aligned_in_smp
@@ -60,4 +60,8 @@
 #endif
 #endif
 
+#ifndef CONFIG_ARCH_HAS_CACHE_LINE_SIZE
+#define cache_line_size()      L1_CACHE_BYTES
+#endif
+
 #endif /* __LINUX_CACHE_H */