Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2010 19:41:39 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r205915 - head/sys/sys
Message-ID:  <201003301941.o2UJfdfB075500@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003301941.o2UJfdfB075500>