Fix statclock() on non-boot processors: curproc -> curthread.

This commit is contained in:
John Baldwin 2001-09-21 23:10:11 +00:00
parent 7c80f09bae
commit b85188b1c8

View File

@ -476,7 +476,7 @@ alpha_clock_interrupt(struct trapframe *framep)
mtx_lock_spin(&sched_lock);
hardclock_process(curthread, TRAPF_USERMODE(framep));
if ((schedclk2 & 0x7) == 0)
statclock_process(curproc, TRAPF_PC(framep),
statclock_process(curthread, TRAPF_PC(framep),
TRAPF_USERMODE(framep));
mtx_unlock_spin(&sched_lock);
}