#define __LINUX_CACHE_H
#include <linux/kernel.h>
+#include <linux/config.h>
#include <asm/cache.h>
#ifndef L1_CACHE_ALIGN
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#endif
-#ifndef __read_mostly
+#if defined(CONFIG_X86) || defined(CONFIG_SPARC64) || defined(CONFIG_IA64) || defined(CONFIG_PARISC)
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+#else
#define __read_mostly
#endif