Skip to content

Commit cbfcb95

Browse files
committed
Remove __mp_release_all_but_one().
1 parent 7daabe6 commit cbfcb95

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

sys/arch/amd64/amd64/lock_machdep.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -122,24 +122,6 @@ __mp_release_all(struct __mp_lock *mpl)
122122
return (rv);
123123
}
124124

125-
int
126-
__mp_release_all_but_one(struct __mp_lock *mpl)
127-
{
128-
struct __mp_lock_cpu *cpu = &mpl->mpl_cpus[cpu_number()];
129-
int rv = cpu->mplc_depth - 1;
130-
131-
#ifdef MP_LOCKDEBUG
132-
if (!__mp_lock_held(mpl)) {
133-
db_printf("__mp_release_all_but_one(%p): not held lock\n", mpl);
134-
Debugger();
135-
}
136-
#endif
137-
138-
cpu->mplc_depth = 1;
139-
140-
return (rv);
141-
}
142-
143125
void
144126
__mp_acquire_count(struct __mp_lock *mpl, int count)
145127
{

sys/arch/amd64/include/mplock.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ void __mp_lock_init(struct __mp_lock *);
4444
void __mp_lock(struct __mp_lock *);
4545
void __mp_unlock(struct __mp_lock *);
4646
int __mp_release_all(struct __mp_lock *);
47-
int __mp_release_all_but_one(struct __mp_lock *);
4847
void __mp_acquire_count(struct __mp_lock *, int);
4948
int __mp_lock_held(struct __mp_lock *);
5049

sys/sys/mplock.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ void __mp_lock_init(struct __mp_lock *);
3636
void __mp_lock(struct __mp_lock *);
3737
void __mp_unlock(struct __mp_lock *);
3838
int __mp_release_all(struct __mp_lock *);
39-
int __mp_release_all_but_one(struct __mp_lock *);
4039
void __mp_acquire_count(struct __mp_lock *, int);
4140
int __mp_lock_held(struct __mp_lock *);
4241
#endif

0 commit comments

Comments
 (0)