summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-10-19 20:14:48 +0000
committermarcel <marcel@FreeBSD.org>2008-10-19 20:14:48 +0000
commit2f8a2668f4849bc6ddaa670d23487d9733577a4d (patch)
tree6f687e1022884b4478f6e505605096dab0bbdb90
parent1981c416237b31d3b4990817d64907fad3a1a682 (diff)
downloadFreeBSD-src-2f8a2668f4849bc6ddaa670d23487d9733577a4d.zip
FreeBSD-src-2f8a2668f4849bc6ddaa670d23487d9733577a4d.tar.gz
Atomically increment the number of awoken APs as all APs will
be unleashed here. Pointed out by: christian.kandeler@hob.de
-rw-r--r--sys/ia64/ia64/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/mp_machdep.c b/sys/ia64/ia64/mp_machdep.c
index ce2b4d1..6885286 100644
--- a/sys/ia64/ia64/mp_machdep.c
+++ b/sys/ia64/ia64/mp_machdep.c
@@ -125,7 +125,7 @@ ia64_ap_startup(void)
ia64_mca_save_state(SAL_INFO_MCA);
ia64_mca_save_state(SAL_INFO_CMC);
- ap_awake++;
+ atomic_add_int(&ap_awake, 1);
while (!smp_started)
cpu_spinwait();
OpenPOWER on IntegriCloud