The branch main has been updated by bz:

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

commit e21652c13c7c161efac7fd0b247c73914312212a
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2021-05-24 17:56:53 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
CommitDate: 2021-05-25 18:01:48 +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
    MFC after:      2 weeks
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D30419
---
 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_ */
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to