From 9f0f9c58e85f63c8f532f68798543c2152916e74 Mon Sep 17 00:00:00 2001 From: lstewart Date: Sat, 17 Jul 2010 03:39:50 +0000 Subject: [PATCH] Unbreak DPCPU_SUM() by dereferencing the pointer returned by DPCPU_ID_PTR(). MFC after: 3 days --- sys/sys/pcpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \ })