git: 37930dd347f4 - stable/13 - LinuxKPI: cache.h add L1_CACHE_ALIGN()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 17 Oct 2022 20:41:40 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=37930dd347f4d0882a7db8dc5413c2111fbac7ea

commit 37930dd347f4d0882a7db8dc5413c2111fbac7ea
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-09-21 19:46:17 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-10-17 20:37:04 +0000

    LinuxKPI: cache.h add L1_CACHE_ALIGN()
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D36655
    
    (cherry picked from commit f7c0c1590e3e313d7f60da275b1d74dd82b56b04)
---
 sys/compat/linuxkpi/common/include/linux/cache.h | 1 +
 1 file changed, 1 insertion(+)

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