summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-15 19:54:48 +0000
committerjhb <jhb@FreeBSD.org>2001-11-15 19:54:48 +0000
commitae1274f8d211ea0b3273badf7478d43e90f36d0d (patch)
treedc5112ac921162f8e91b7d092b23f09267ee357f /sys/kern/kern_clock.c
parent7225db9bf4bec1e98eb06c0f6f1cc3228e377068 (diff)
downloadFreeBSD-src-ae1274f8d211ea0b3273badf7478d43e90f36d0d.zip
FreeBSD-src-ae1274f8d211ea0b3273badf7478d43e90f36d0d.tar.gz
Use MTX_QUIET for the lock operations during clock interrupts so their logs
don't drown out more useful log messages.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 70f0616..4c2ccc0 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);
}
/*
OpenPOWER on IntegriCloud