cache.h 323 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __VDSO_CACHE_H
  3. #define __VDSO_CACHE_H
  4. #include <asm/cache.h>
  5. #ifndef SMP_CACHE_BYTES
  6. #define SMP_CACHE_BYTES L1_CACHE_BYTES
  7. #endif
  8. #ifndef ____cacheline_aligned
  9. #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
  10. #endif
  11. #endif /* __VDSO_ALIGN_H */