]> err.no Git - linux-2.6/blobdiff - include/linux/cache.h
[PATCH] I2C: Separate non-i2c hwmon drivers from i2c-core (1/9)
[linux-2.6] / include / linux / cache.h
index 4d767b93738a9461268910c87757c6f1fe7e5e4c..f6b5a46c5f827dbfa02f20252f4fcbf9d72100f9 100644 (file)
 #define SMP_CACHE_BYTES L1_CACHE_BYTES
 #endif
 
+#if defined(CONFIG_X86) || defined(CONFIG_SPARC64)
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+#else
+#define __read_mostly
+#endif
+
 #ifndef ____cacheline_aligned
 #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
 #endif