PERFORCE change 84399 for review

John Baldwin jhb at FreeBSD.org
Tue Sep 27 14:17:21 PDT 2005


http://perforce.freebsd.org/chv.cgi?CH=84399

Change 84399 by jhb at jhb_slimer on 2005/09/27 21:16:44

	Rename the lapic timer counters to cpuX rather than lapicY.

Affected files ...

.. //depot/projects/smpng/sys/i386/i386/local_apic.c#34 edit

Differences ...

==== //depot/projects/smpng/sys/i386/i386/local_apic.c#34 (text+ko) ====

@@ -314,7 +314,7 @@
 
 	/* Program timer LVT and setup handler. */
 	lapic->lvt_timer = lvt_mode(la, LVT_TIMER, lapic->lvt_timer);
-	snprintf(buf, sizeof(buf), "lapic%d: timer", lapic_id());
+	snprintf(buf, sizeof(buf), "cpu%d: timer", PCPU_GET(cpuid));
 	intrcnt_add(buf, &la->la_timer_count);
 	if (PCPU_GET(cpuid) != 0) {
 		KASSERT(lapic_timer_period != 0, ("lapic%u: zero divisor",


More information about the p4-projects mailing list