Author: kib
Date: Thu Jun 23 09:00:58 2016
New Revision: 302133
URL: https://svnweb.freebsd.org/changeset/base/302133

Log:
  MFC r301959:
  Remove code duplication.

Modified:
  stable/10/sys/kern/kern_thread.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_thread.c
==============================================================================
--- stable/10/sys/kern/kern_thread.c    Thu Jun 23 08:38:01 2016        
(r302132)
+++ stable/10/sys/kern/kern_thread.c    Thu Jun 23 09:00:58 2016        
(r302133)
@@ -613,11 +613,6 @@ weed_inhib(int mode, struct thread *td2,
                        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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to