1 #ifndef __TOOLS_LINUX_CACHE_H
2 #define __TOOLS_LINUX_CACHE_H
4 #define L1_CACHE_SHIFT 6
5 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
6 #define SMP_CACHE_BYTES L1_CACHE_BYTES
8 #define L1_CACHE_ALIGN(x) __ALIGN_KERNEL(x, L1_CACHE_BYTES)
11 #define __ro_after_init
13 #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
14 #define ____cacheline_aligned_in_smp ____cacheline_aligned
16 #endif /* __TOOLS_LINUX_CACHE_H */