svn commit: r223641 - in projects/largeSMP/sys/cddl/dev/dtrace: amd64 i386

Attilio Rao attilio at FreeBSD.org
Tue Jun 28 13:14:40 UTC 2011


Author: attilio
Date: Tue Jun 28 13:14:39 2011
New Revision: 223641
URL: http://svn.freebsd.org/changeset/base/223641

Log:
  Remove pc_cpumask usage from dtrace MD support

Modified:
  projects/largeSMP/sys/cddl/dev/dtrace/amd64/dtrace_subr.c
  projects/largeSMP/sys/cddl/dev/dtrace/i386/dtrace_subr.c

Modified: projects/largeSMP/sys/cddl/dev/dtrace/amd64/dtrace_subr.c
==============================================================================
--- projects/largeSMP/sys/cddl/dev/dtrace/amd64/dtrace_subr.c	Tue Jun 28 13:13:06 2011	(r223640)
+++ projects/largeSMP/sys/cddl/dev/dtrace/amd64/dtrace_subr.c	Tue Jun 28 13:14:39 2011	(r223641)
@@ -412,8 +412,8 @@ dtrace_gethrtime_init(void *arg)
 			continue;
 
 		pc = pcpu_find(i);
-		map = PCPU_GET(cpumask);
-		CPU_OR(&map, &pc->pc_cpumask);
+		CPU_SETOF(PCPU_GET(cpuid), &map);
+		CPU_SET(pc->pc_cpuid, &map);
 
 		smp_rendezvous_cpus(map, NULL,
 		    dtrace_gethrtime_init_cpu,

Modified: projects/largeSMP/sys/cddl/dev/dtrace/i386/dtrace_subr.c
==============================================================================
--- projects/largeSMP/sys/cddl/dev/dtrace/i386/dtrace_subr.c	Tue Jun 28 13:13:06 2011	(r223640)
+++ projects/largeSMP/sys/cddl/dev/dtrace/i386/dtrace_subr.c	Tue Jun 28 13:14:39 2011	(r223641)
@@ -413,8 +413,8 @@ dtrace_gethrtime_init(void *arg)
 			continue;
 
 		pc = pcpu_find(i);
-		map = PCPU_GET(cpumask);
-		CPU_OR(&map, &pc->pc_cpumask);
+		CPU_SETOF(PCPU_GET(cpuid), &map);
+		CPU_SET(pc->pc_cpuid, &map);
 
 		smp_rendezvous_cpus(map, NULL,
 		    dtrace_gethrtime_init_cpu,


More information about the svn-src-projects mailing list