1 #ifndef __LINUX_CACHE_H
2 #define __LINUX_CACHE_H
7 #define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
10 #ifndef SMP_CACHE_BYTES
11 #define SMP_CACHE_BYTES L1_CACHE_BYTES
14 #ifndef ____cacheline_aligned
15 #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
18 #ifndef __cacheline_aligned
20 #define __cacheline_aligned ____cacheline_aligned
22 #define __cacheline_aligned \
23 __attribute__((__aligned__(SMP_CACHE_BYTES), \
24 __section__(".data.cacheline_aligned")))
26 #endif /* __cacheline_aligned */
28 #endif /* __LINUX_CACHE_H */