From ea688ef40b1d310e9aa0001baab9069000bcb89c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 28 Sep 2005 18:01:41 +0000 Subject: [PATCH] Rename the lapic timer interrupt counters from lapicX: timer to cpuX: timer since it's not always obvious that lapic == cpu. MFC after: 3 days --- sys/i386/i386/local_apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/i386/local_apic.c b/sys/i386/i386/local_apic.c index 1e0132cd1eec..f1607a487bed 100644 --- a/sys/i386/i386/local_apic.c +++ b/sys/i386/i386/local_apic.c @@ -314,7 +314,7 @@ lapic_setup(void) /* 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",