Author: rwatson Date: Sun Apr 19 21:26:36 2009 New Revision: 191278 URL: http://svn.freebsd.org/changeset/base/191278
Log: Add description and cautionary note regarding CACHE_LINE_SIZE. MFC after: 2 weeks Suggested by: alc Modified: head/sys/amd64/include/param.h head/sys/arm/include/param.h head/sys/i386/include/param.h head/sys/ia64/include/param.h head/sys/mips/include/param.h head/sys/powerpc/include/param.h head/sys/sparc64/include/param.h head/sys/sun4v/include/param.h Modified: head/sys/amd64/include/param.h ============================================================================== --- head/sys/amd64/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/amd64/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -89,6 +89,10 @@ #define ALIGN(p) _ALIGN(p) #define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t) +/* + * 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 Modified: head/sys/arm/include/param.h ============================================================================== --- head/sys/arm/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/arm/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -81,6 +81,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 Modified: head/sys/i386/include/param.h ============================================================================== --- head/sys/i386/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/i386/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -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 Modified: head/sys/ia64/include/param.h ============================================================================== --- head/sys/ia64/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/ia64/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -99,6 +99,10 @@ #define ALIGN(p) _ALIGN(p) #define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t) +/* + * 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 Modified: head/sys/mips/include/param.h ============================================================================== --- head/sys/mips/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/mips/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -89,6 +89,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 Modified: head/sys/powerpc/include/param.h ============================================================================== --- head/sys/powerpc/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/powerpc/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -79,6 +79,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 7 #endif Modified: head/sys/sparc64/include/param.h ============================================================================== --- head/sys/sparc64/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/sparc64/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -71,6 +71,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 Modified: head/sys/sun4v/include/param.h ============================================================================== --- head/sys/sun4v/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/sun4v/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -71,6 +71,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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"