xref: /linux/include/vdso/cache.h (revision 4f9786035f9e519db41375818e1d0b5f20da2f10)
1*0704bf43SThomas Weißschuh /* SPDX-License-Identifier: GPL-2.0 */
2*0704bf43SThomas Weißschuh #ifndef __VDSO_CACHE_H
3*0704bf43SThomas Weißschuh #define __VDSO_CACHE_H
4*0704bf43SThomas Weißschuh 
5*0704bf43SThomas Weißschuh #include <asm/cache.h>
6*0704bf43SThomas Weißschuh 
7*0704bf43SThomas Weißschuh #ifndef SMP_CACHE_BYTES
8*0704bf43SThomas Weißschuh #define SMP_CACHE_BYTES L1_CACHE_BYTES
9*0704bf43SThomas Weißschuh #endif
10*0704bf43SThomas Weißschuh 
11*0704bf43SThomas Weißschuh #ifndef ____cacheline_aligned
12*0704bf43SThomas Weißschuh #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
13*0704bf43SThomas Weißschuh #endif
14*0704bf43SThomas Weißschuh 
15*0704bf43SThomas Weißschuh #endif	/* __VDSO_ALIGN_H */
16