svn commit: r221279 - projects/largeSMP/sys/dev/hwpmc
Attilio Rao
attilio at FreeBSD.org
Sat Apr 30 22:33:11 UTC 2011
Author: attilio
Date: Sat Apr 30 22:33:11 2011
New Revision: 221279
URL: http://svn.freebsd.org/changeset/base/221279
Log:
Remove unnecessary usage of memory barriers when dealing with
pmc_cpumask.
Discussed with: fabient
Modified:
projects/largeSMP/sys/dev/hwpmc/hwpmc_mod.c
Modified: projects/largeSMP/sys/dev/hwpmc/hwpmc_mod.c
==============================================================================
--- projects/largeSMP/sys/dev/hwpmc/hwpmc_mod.c Sat Apr 30 22:30:18 2011 (r221278)
+++ projects/largeSMP/sys/dev/hwpmc/hwpmc_mod.c Sat Apr 30 22:33:11 2011 (r221279)
@@ -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);
+ atomic_store_int(&pmc_cpumask, 0);
pmc_intr = NULL;
sx_xlock(&pmc_sx);
More information about the svn-src-projects
mailing list