Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2022 20:41:40 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 37930dd347f4 - stable/13 - LinuxKPI: cache.h add L1_CACHE_ALIGN()
Message-ID:  <202210172041.29HKfeAG096579@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210172041.29HKfeAG096579>