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: [EMAIL PROTECTED]

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();
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to