diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-11-15 19:54:48 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-11-15 19:54:48 +0000 |
| commit | 21a7a9aeb63c77a7003a61d2606194c43230aff1 (patch) | |
| tree | dc5112ac921162f8e91b7d092b23f09267ee357f /sys/kern/kern_clock.c | |
| parent | f4076cc15821767e9fd5325af59ce9849f3ae86c (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
| -rw-r--r-- | sys/kern/kern_clock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 70f0616b98ea..4c2ccc0a7928 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -199,9 +199,9 @@ hardclock(frame) int need_softclock = 0; CTR0(KTR_INTR, "hardclock fired"); - mtx_lock_spin(&sched_lock); + mtx_lock_spin_flags(&sched_lock, MTX_QUIET); hardclock_process(curthread, CLKF_USERMODE(frame)); - mtx_unlock_spin(&sched_lock); + mtx_unlock_spin_flags(&sched_lock, MTX_QUIET); /* * If no separate statistics clock is available, run it from here. @@ -217,13 +217,13 @@ hardclock(frame) * Process callouts at a very low cpu priority, so we don't keep the * relatively high clock interrupt priority any longer than necessary. */ - mtx_lock_spin(&callout_lock); + mtx_lock_spin_flags(&callout_lock, MTX_QUIET); ticks++; if (TAILQ_FIRST(&callwheel[ticks & callwheelmask]) != NULL) { need_softclock = 1; } else if (softticks + 1 == ticks) ++softticks; - mtx_unlock_spin(&callout_lock); + mtx_unlock_spin_flags(&callout_lock, MTX_QUIET); /* * swi_sched acquires sched_lock, so we don't want to call it with @@ -455,11 +455,11 @@ statclock(frame) { CTR0(KTR_INTR, "statclock fired"); - mtx_lock_spin(&sched_lock); + mtx_lock_spin_flags(&sched_lock, MTX_QUIET); if (--pscnt == 0) pscnt = psdiv; statclock_process(curthread->td_kse, CLKF_PC(frame), CLKF_USERMODE(frame)); - mtx_unlock_spin(&sched_lock); + mtx_unlock_spin_flags(&sched_lock, MTX_QUIET); } /* |
