summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-06-03 14:34:20 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-06-03 14:34:20 +0000
commite45166f889892f278b5fdb2720f489feaaf26e5f (patch)
tree673ce0698d7596d01935a002b1c6858425f99c2a /sys/kern
parente6fc6181d5c6bfbba87eea4a32dc69523de2d662 (diff)
Remove lock_class_sched_lock from lock_classes since the corresponding
entry in enum lock_class_index was removed in sys/_lock.h You get fireworks if the lock_classes array and enum lock_class_index get out of sync.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_witness.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index b8d208313a6..9f0919013b2 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_witness.c,v 1.52 2024/05/03 13:47:31 visa Exp $ */
+/* $OpenBSD: subr_witness.c,v 1.53 2024/06/03 14:34:19 claudio Exp $ */
/*-
* Copyright (c) 2008 Isilon Systems, Inc.
@@ -438,11 +438,6 @@ static struct lock_class lock_class_kernel_lock = {
.lc_flags = LC_SLEEPLOCK | LC_RECURSABLE | LC_SLEEPABLE
};
-static struct lock_class lock_class_sched_lock = {
- .lc_name = "sched_lock",
- .lc_flags = LC_SPINLOCK | LC_RECURSABLE
-};
-
static struct lock_class lock_class_mutex = {
.lc_name = "mutex",
.lc_flags = LC_SPINLOCK
@@ -461,7 +456,6 @@ static struct lock_class lock_class_rrwlock = {
static struct lock_class *lock_classes[] = {
&lock_class_kernel_lock,
- &lock_class_sched_lock,
&lock_class_mutex,
&lock_class_rwlock,
&lock_class_rrwlock,