svn commit: r205915 - head/sys/sys
John Baldwin
jhb at FreeBSD.org
Tue Mar 30 19:41:39 UTC 2010
Author: jhb
Date: Tue Mar 30 19:41:38 2010
New Revision: 205915
URL: http://svn.freebsd.org/changeset/base/205915
Log:
Use CACHE_LINE_SIZE alignment for 'struct pcpu' rather than hardcoding 128.
Reviewed by: jeff
Modified:
head/sys/sys/pcpu.h
Modified: head/sys/sys/pcpu.h
==============================================================================
--- head/sys/sys/pcpu.h Tue Mar 30 19:37:55 2010 (r205914)
+++ head/sys/sys/pcpu.h Tue Mar 30 19:41:38 2010 (r205915)
@@ -165,7 +165,7 @@ struct pcpu {
* if only to make kernel debugging easier.
*/
PCPU_MD_FIELDS;
-} __aligned(128);
+} __aligned(CACHE_LINE_SIZE);
#ifdef _KERNEL
More information about the svn-src-all
mailing list