summaryrefslogtreecommitdiffstats
path: root/sys/sys/pcpu.h
diff options
context:
space:
mode:
authorlstewart <lstewart@FreeBSD.org>2010-07-17 03:39:50 +0000
committerlstewart <lstewart@FreeBSD.org>2010-07-17 03:39:50 +0000
commit9f0f9c58e85f63c8f532f68798543c2152916e74 (patch)
tree785c84a31c5e3e1cc7d572df953385bbc8774687 /sys/sys/pcpu.h
parent9cf8afc5f114c1b0d87f2a70d7a92a64b31ba45a (diff)
downloadFreeBSD-src-9f0f9c58e85f63c8f532f68798543c2152916e74.zip
FreeBSD-src-9f0f9c58e85f63c8f532f68798543c2152916e74.tar.gz
Unbreak DPCPU_SUM() by dereferencing the pointer returned by DPCPU_ID_PTR().
MFC after: 3 days
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 42f9ca0..917f329 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; \
})
OpenPOWER on IntegriCloud