diff options
| author | 2005-07-08 08:52:42 -0700 | |
|---|---|---|
| committer | 2005-07-08 08:52:42 -0700 | |
| commit | 88c3cdfdde3cf87e1831265ea4246430bef34fc9 (patch) | |
| tree | caea510ffb2f81a5ea13b00ecb8a4146ad462048 /include/linux/cache.h | |
| parent | [PATCH] Documentation (diff) | |
| parent | [PATCH] Add MAINTAINERS entry for audit subsystem (diff) | |
Auto merge with /home/aegl/GIT/linus
Diffstat (limited to 'include/linux/cache.h')
| -rw-r--r-- | include/linux/cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/cache.h b/include/linux/cache.h index 4d767b93738a..2b66a36d85f0 100644 --- a/include/linux/cache.h +++ b/include/linux/cache.h @@ -13,6 +13,12 @@ #define SMP_CACHE_BYTES L1_CACHE_BYTES #endif +#ifdef CONFIG_X86 +#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 |
