diff --git a/sys/alpha/alpha/clock.c b/sys/alpha/alpha/clock.c index 662c3d71b508..69d281695835 100644 --- a/sys/alpha/alpha/clock.c +++ b/sys/alpha/alpha/clock.c @@ -737,13 +737,13 @@ sysbeep(int pitch, int period) outb(TIMER_CNTR2, pitch); outb(TIMER_CNTR2, (pitch>>8)); + mtx_unlock_spin(&clock_lock); if (!beeping) { /* enable counter2 output to speaker */ if (pitch) outb(IO_PPI, inb(IO_PPI) | 3); beeping = period; timeout(sysbeepstop, (void *)NULL, period); } - mtx_unlock_spin(&clock_lock); return (0); }