Fix a cpuid mismatch from the recent cpuid rototill in Alpha: boot_cpu_id

is a PAL ID, while PCPU_GET(cpuid) is a FreeBSD CPU ID.  The FreeBSD CPU
ID of the BSP is always zero, so use that to see which CPU should run the
full clock functions.
This commit is contained in:
jhb 2004-11-23 22:11:53 +00:00
parent c6e2c549c2
commit e0cb9607c5

View File

@ -474,7 +474,7 @@ alpha_clock_interrupt(struct trapframe *framep)
/*
* Only one processor drives the actual timer.
*/
if (PCPU_GET(cpuid) == boot_cpu_id) {
if (PCPU_GET(cpuid) == 0) {
#endif
(*platform.clockintr)(framep);
/* divide hz (1024) by 8 to get stathz (128) */