summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/param.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-04-19 21:26:36 +0000
committerrwatson <rwatson@FreeBSD.org>2009-04-19 21:26:36 +0000
commitab17fac487a2edc11c9643eaab1c3c4e1dd5589b (patch)
treee3980f5305201bf6d9d964102f24c655738fbb51 /sys/i386/include/param.h
parente215ab3b02bae1355e92de58c118eb0032066bf1 (diff)
downloadFreeBSD-src-ab17fac487a2edc11c9643eaab1c3c4e1dd5589b.zip
FreeBSD-src-ab17fac487a2edc11c9643eaab1c3c4e1dd5589b.tar.gz
Add description and cautionary note regarding CACHE_LINE_SIZE.
MFC after: 2 weeks Suggested by: alc
Diffstat (limited to 'sys/i386/include/param.h')
-rw-r--r--sys/i386/include/param.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index d9a3cda..abf855d 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -74,6 +74,10 @@
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)
+/*
+ * CACHE_LINE_SIZE is the compile-time maximum cache line size for an
+ * architecture. It should be used with appropriate caution.
+ */
#ifndef CACHE_LINE_SHIFT
#define CACHE_LINE_SHIFT 6
#endif
OpenPOWER on IntegriCloud