Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2021 00:36:32 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: 1a542dd64611 - stable/13 - LinuxKPI: cache.h add SMP_CACHE_BYTES
Message-ID:  <202107180036.16I0aWDD049258@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=1a542dd64611701fd3371e9179108307b1cc5da5

commit 1a542dd64611701fd3371e9179108307b1cc5da5
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-05-24 17:56:53 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-07-18 00:35:02 +0000

    LinuxKPI: cache.h add SMP_CACHE_BYTES
    
    Add a definition for SMP_CACHE_BYTES and while here include sys/param.h
    for CACHE_LINE_SIZE as otherwise code might not compile standalone.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D30419
    
    (cherry picked from commit e21652c13c7c161efac7fd0b247c73914312212a)
---
 sys/compat/linuxkpi/common/include/linux/cache.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/cache.h b/sys/compat/linuxkpi/common/include/linux/cache.h
index a269e55eb90b..4d1d400152ff 100644
--- a/sys/compat/linuxkpi/common/include/linux/cache.h
+++ b/sys/compat/linuxkpi/common/include/linux/cache.h
@@ -31,7 +31,11 @@
 #ifndef	_LINUX_CACHE_H_
 #define _LINUX_CACHE_H_
 
+#include <sys/param.h>
+
 #define	cache_line_size()	CACHE_LINE_SIZE
 #define	L1_CACHE_BYTES		CACHE_LINE_SIZE
 
+#define	SMP_CACHE_BYTES		L1_CACHE_BYTES
+
 #endif	/* _LINUX_CACHE_H_ */



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