0001
0002 #ifndef _ASM_X86_CACHE_H
0003 #define _ASM_X86_CACHE_H
0004
0005 #include <linux/linkage.h>
0006
0007
0008 #define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
0009 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
0010
0011 #define __read_mostly __section(".data..read_mostly")
0012
0013 #define INTERNODE_CACHE_SHIFT CONFIG_X86_INTERNODE_CACHE_SHIFT
0014 #define INTERNODE_CACHE_BYTES (1 << INTERNODE_CACHE_SHIFT)
0015
0016 #ifdef CONFIG_X86_VSMP
0017 #ifdef CONFIG_SMP
0018 #define __cacheline_aligned_in_smp \
0019 __attribute__((__aligned__(INTERNODE_CACHE_BYTES))) \
0020 __page_aligned_data
0021 #endif
0022 #endif
0023
0024 #endif