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
This commit is contained in:
parent
da717031c9
commit
e21652c13c
@ -31,7 +31,11 @@
|
|||||||
#ifndef _LINUX_CACHE_H_
|
#ifndef _LINUX_CACHE_H_
|
||||||
#define _LINUX_CACHE_H_
|
#define _LINUX_CACHE_H_
|
||||||
|
|
||||||
|
#include <sys/param.h>
|
||||||
|
|
||||||
#define cache_line_size() CACHE_LINE_SIZE
|
#define cache_line_size() CACHE_LINE_SIZE
|
||||||
#define L1_CACHE_BYTES CACHE_LINE_SIZE
|
#define L1_CACHE_BYTES CACHE_LINE_SIZE
|
||||||
|
|
||||||
|
#define SMP_CACHE_BYTES L1_CACHE_BYTES
|
||||||
|
|
||||||
#endif /* _LINUX_CACHE_H_ */
|
#endif /* _LINUX_CACHE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user