diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-09-21 19:46:17 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2022-09-22 15:10:04 +0000 |
commit | f7c0c1590e3e313d7f60da275b1d74dd82b56b04 (patch) | |
tree | b1713e4a5110d0d31d33c6636da8bc6021573ada /sys/compat | |
parent | 30048f61423bed87912686a7adfd12be9a4c7c27 (diff) | |
download | src-f7c0c1590e3e313d7f60da275b1d74dd82b56b04.tar.gz src-f7c0c1590e3e313d7f60da275b1d74dd82b56b04.zip |
LinuxKPI: cache.h add L1_CACHE_ALIGN()
Sponsored by: The FreeBSD Foundation
MFC after: 7 days
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D36655
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/cache.h b/sys/compat/linuxkpi/common/include/linux/cache.h index 6479d5d04d3a..68e8cc90f877 100644 --- a/sys/compat/linuxkpi/common/include/linux/cache.h +++ b/sys/compat/linuxkpi/common/include/linux/cache.h @@ -35,6 +35,7 @@ #define cache_line_size() CACHE_LINE_SIZE #define L1_CACHE_BYTES CACHE_LINE_SIZE +#define L1_CACHE_ALIGN(x) ALIGN(x, CACHE_LINE_SIZE) #define SMP_CACHE_BYTES L1_CACHE_BYTES |