summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-05-20 22:11:50 +0000
committerjeff <jeff@FreeBSD.org>2007-05-20 22:11:50 +0000
commit027ae03b495b7cd9633acb01b6fddea042645da3 (patch)
tree42c8e52aead43f7431897ada079682da98afc241 /sys/kern/subr_witness.c
parentbcfa98d0197abe20a89b307cefcf22f4e04ac8ff (diff)
downloadFreeBSD-src-027ae03b495b7cd9633acb01b6fddea042645da3.zip
FreeBSD-src-027ae03b495b7cd9633acb01b6fddea042645da3.tar.gz
- Move clock synchronization into a seperate clock lock so the global
scheduler lock is not involved. sched_lock still protects the sched_clock call. Another patch will remedy this. Contributed by: Attilio Rao <attilio@FreeBSD.org> Tested by: kris, jeff
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 7224568..1f750e5 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -410,6 +410,7 @@ static struct witness_order_list_entry order_lists[] = {
{ "callout", &lock_class_mtx_spin },
{ "entropy harvest mutex", &lock_class_mtx_spin },
{ "syscons video lock", &lock_class_mtx_spin },
+ { "time lock", &lock_class_mtx_spin },
/*
* leaf locks
*/
OpenPOWER on IntegriCloud