diff options
author | jhb <jhb@FreeBSD.org> | 2004-11-23 22:11:53 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-11-23 22:11:53 +0000 |
commit | e0cb9607c5e7ba4f51e46e1fd4248f9058e1fa0b (patch) | |
tree | 7ec44e27f5e764feff2bed29282a053e867568c9 /sys/alpha | |
parent | c6e2c549c210e861b6037e36243520ab227c9696 (diff) | |
download | FreeBSD-src-e0cb9607c5e7ba4f51e46e1fd4248f9058e1fa0b.zip FreeBSD-src-e0cb9607c5e7ba4f51e46e1fd4248f9058e1fa0b.tar.gz |
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.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/interrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/alpha/alpha/interrupt.c b/sys/alpha/alpha/interrupt.c index a9e0834..51644bd 100644 --- a/sys/alpha/alpha/interrupt.c +++ b/sys/alpha/alpha/interrupt.c @@ -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) */ |