summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-07-03 01:36:51 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-07-03 01:36:51 +0000
commitfbc5d2b9569b14b9df0c0a04e85903ee32088d49 (patch)
tree3cf4260a5bc5ac0a3c470850b88a4fa8edb5ef0a /sys/arch/hppa
parent6def6e3ddca51bbafd74f361be22abcb85399891 (diff)
remove __mp_release_all_but_one(), unused since sched_bsd.c rev 1.92
ok claudio@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/lock_machdep.c28
-rw-r--r--sys/arch/hppa/include/mplock.h3
2 files changed, 2 insertions, 29 deletions
diff --git a/sys/arch/hppa/hppa/lock_machdep.c b/sys/arch/hppa/hppa/lock_machdep.c
index 44c9dda7fb4..67d515a46c0 100644
--- a/sys/arch/hppa/hppa/lock_machdep.c
+++ b/sys/arch/hppa/hppa/lock_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lock_machdep.c,v 1.14 2019/04/23 13:35:12 visa Exp $ */
+/* $OpenBSD: lock_machdep.c,v 1.15 2024/07/03 01:36:50 jsg Exp $ */
/*
* Copyright (c) 2007 Artur Grabowski <art@openbsd.org>
@@ -191,32 +191,6 @@ __mp_release_all(struct __mp_lock *mpl)
return (rv);
}
-int
-__mp_release_all_but_one(struct __mp_lock *mpl)
-{
- int rv = mpl->mpl_count - 2;
-#ifdef WITNESS
- int i;
-#endif
-
-#ifdef MP_LOCKDEBUG
- if (mpl->mpl_cpu != curcpu()) {
- db_printf("__mp_release_all_but_one(%p): lock not held - "
- "%p != %p\n", mpl, mpl->mpl_cpu, curcpu());
- db_enter();
- }
-#endif
-
-#ifdef WITNESS
- for (i = 0; i < rv; i++)
- WITNESS_UNLOCK(&mpl->mpl_lock_obj, LOP_EXCLUSIVE);
-#endif
-
- mpl->mpl_count = 2;
-
- return (rv);
-}
-
void
__mp_acquire_count(struct __mp_lock *mpl, int count)
{
diff --git a/sys/arch/hppa/include/mplock.h b/sys/arch/hppa/include/mplock.h
index b0c2d7299e2..87f01b205c1 100644
--- a/sys/arch/hppa/include/mplock.h
+++ b/sys/arch/hppa/include/mplock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mplock.h,v 1.5 2019/04/23 13:35:12 visa Exp $ */
+/* $OpenBSD: mplock.h,v 1.6 2024/07/03 01:36:50 jsg Exp $ */
/*
* Copyright (c) 2004 Niklas Hallqvist. All rights reserved.
@@ -50,7 +50,6 @@ void ___mp_lock_init(struct __mp_lock *);
void __mp_lock(struct __mp_lock *);
void __mp_unlock(struct __mp_lock *);
int __mp_release_all(struct __mp_lock *);
-int __mp_release_all_but_one(struct __mp_lock *);
void __mp_acquire_count(struct __mp_lock *, int);
int __mp_lock_held(struct __mp_lock *, struct cpu_info *);