Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 03:39:50 +0000 (UTC)
From:      Lawrence Stewart <lstewart@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210184 - head/sys/sys
Message-ID:  <201007170339.o6H3dor1008729@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lstewart
Date: Sat Jul 17 03:39:50 2010
New Revision: 210184
URL: http://svn.freebsd.org/changeset/base/210184

Log:
  Unbreak DPCPU_SUM() by dereferencing the pointer returned by DPCPU_ID_PTR().
  
  MFC after:	3 days

Modified:
  head/sys/sys/pcpu.h

Modified: head/sys/sys/pcpu.h
==============================================================================
--- head/sys/sys/pcpu.h	Sat Jul 17 01:40:41 2010	(r210183)
+++ head/sys/sys/pcpu.h	Sat Jul 17 03:39:50 2010	(r210184)
@@ -116,7 +116,7 @@ extern uintptr_t dpcpu_off[];
 									\
 	sum = 0;							\
 	CPU_FOREACH(_i) {						\
-		sum += DPCPU_ID_PTR(_i, n);				\
+		sum += *DPCPU_ID_PTR(_i, n);				\
 	}								\
 	sum;								\
 })



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