Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2008 20:14:49 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184062 - head/sys/ia64/ia64
Message-ID:  <200810192014.m9JKEnCo051658@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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();
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810192014.m9JKEnCo051658>