Remove code duplication.
Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (hrs) X-Differential revision: https://reviews.freebsd.org/D6731
This commit is contained in:
parent
5647bfaab0
commit
13d2cd3b68
@ -669,11 +669,6 @@ weed_inhib(int mode, struct thread *td2, struct proc *p)
|
||||
wakeup_swapper |= sleepq_abort(td2, EINTR);
|
||||
break;
|
||||
case SINGLE_BOUNDARY:
|
||||
if (TD_IS_SUSPENDED(td2) && (td2->td_flags & TDF_BOUNDARY) == 0)
|
||||
wakeup_swapper |= thread_unsuspend_one(td2, p, false);
|
||||
if (TD_ON_SLEEPQ(td2) && (td2->td_flags & TDF_SINTR) != 0)
|
||||
wakeup_swapper |= sleepq_abort(td2, ERESTART);
|
||||
break;
|
||||
case SINGLE_NO_EXIT:
|
||||
if (TD_IS_SUSPENDED(td2) && (td2->td_flags & TDF_BOUNDARY) == 0)
|
||||
wakeup_swapper |= thread_unsuspend_one(td2, p, false);
|
||||
|
Loading…
Reference in New Issue
Block a user