]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/cache.h
Move c_src dirs back to toplevel
[bcachefs-tools-debian] / include / linux / cache.h
1 #ifndef __TOOLS_LINUX_CACHE_H
2 #define __TOOLS_LINUX_CACHE_H
3
4 #define L1_CACHE_SHIFT          6
5 #define L1_CACHE_BYTES          (1 << L1_CACHE_SHIFT)
6 #define SMP_CACHE_BYTES         L1_CACHE_BYTES
7
8 #define L1_CACHE_ALIGN(x)       __ALIGN_KERNEL(x, L1_CACHE_BYTES)
9
10 #define __read_mostly
11 #define __ro_after_init
12
13 #define ____cacheline_aligned   __attribute__((__aligned__(SMP_CACHE_BYTES)))
14 #define ____cacheline_aligned_in_smp ____cacheline_aligned
15
16 #endif /* __TOOLS_LINUX_CACHE_H */
17