aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/pcpu.h
diff options
context:
space:
mode:
authorLawrence Stewart <lstewart@FreeBSD.org>2010-07-17 03:39:50 +0000
committerLawrence Stewart <lstewart@FreeBSD.org>2010-07-17 03:39:50 +0000
commit96f2f82a6968225848bfabff8d903b3199e1a63b (patch)
tree785c84a31c5e3e1cc7d572df953385bbc8774687 /sys/sys/pcpu.h
parent49d91a7fbe4b9e10a6adc454d40c2da60e895f0e (diff)
downloadsrc-96f2f82a6968225848bfabff8d903b3199e1a63b.tar.gz
src-96f2f82a6968225848bfabff8d903b3199e1a63b.zip
Unbreak DPCPU_SUM() by dereferencing the pointer returned by DPCPU_ID_PTR().
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=210184
Diffstat (limited to 'sys/sys/pcpu.h')
-rw-r--r--sys/sys/pcpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
index 42f9ca0122d5..917f32964a54 100644
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -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; \
})