Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2011 23:35:14 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222002 - head/sys/dev/hwpmc
Message-ID:  <201105162335.p4GNZEUV003507@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Mon May 16 23:35:14 2011
New Revision: 222002
URL: http://svn.freebsd.org/changeset/base/222002

Log:
  Merge r221279,221280 from largeSMP project:
  pmc_mask doesn't need to use memory barriers.
  
  Reviewed by:	fabient
  Tested by:	several
  MFC after:	1 week

Modified:
  head/sys/dev/hwpmc/hwpmc_mod.c

Modified: head/sys/dev/hwpmc/hwpmc_mod.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_mod.c	Mon May 16 23:20:12 2011	(r222001)
+++ head/sys/dev/hwpmc/hwpmc_mod.c	Mon May 16 23:35:14 2011	(r222002)
@@ -4083,7 +4083,7 @@ pmc_process_interrupt(int cpu, struct pm
 
  done:
 	/* mark CPU as needing processing */
-	atomic_set_rel_int(&pmc_cpumask, (1 << cpu));
+	atomic_set_int(&pmc_cpumask, (1 << cpu));
 
 	return (error);
 }
@@ -4193,7 +4193,7 @@ pmc_process_samples(int cpu)
 			break;
 		if (ps->ps_nsamples == PMC_SAMPLE_INUSE) {
 			/* Need a rescan at a later time. */
-			atomic_set_rel_int(&pmc_cpumask, (1 << cpu));
+			atomic_set_int(&pmc_cpumask, (1 << cpu));
 			break;
 		}
 
@@ -4782,7 +4782,7 @@ pmc_cleanup(void)
 	PMCDBG(MOD,INI,0, "%s", "cleanup");
 
 	/* switch off sampling */
-	atomic_store_rel_int(&pmc_cpumask, 0);
+	pmc_cpumask = 0;
 	pmc_intr = NULL;
 
 	sx_xlock(&pmc_sx);



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