diff options
author | marcel <marcel@FreeBSD.org> | 2008-10-19 20:14:48 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-10-19 20:14:48 +0000 |
commit | 2f8a2668f4849bc6ddaa670d23487d9733577a4d (patch) | |
tree | 6f687e1022884b4478f6e505605096dab0bbdb90 | |
parent | 1981c416237b31d3b4990817d64907fad3a1a682 (diff) | |
download | FreeBSD-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.c | 2 |
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(); |