svn commit: r184062 - head/sys/ia64/ia64
Marcel Moolenaar
marcel at FreeBSD.org
Sun Oct 19 20:14:49 UTC 2008
Author: marcel
Date: Sun Oct 19 20:14:48 2008
New Revision: 184062
URL: http://svn.freebsd.org/changeset/base/184062
Log:
Atomically increment the number of awoken APs as all APs will
be unleashed here.
Pointed out by: christian.kandeler at hob.de
Modified:
head/sys/ia64/ia64/mp_machdep.c
Modified: head/sys/ia64/ia64/mp_machdep.c
==============================================================================
--- head/sys/ia64/ia64/mp_machdep.c Sun Oct 19 17:19:42 2008 (r184061)
+++ head/sys/ia64/ia64/mp_machdep.c Sun Oct 19 20:14:48 2008 (r184062)
@@ -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();
More information about the svn-src-all
mailing list