Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2016 11:58:46 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301959 - head/sys/kern
Message-ID:  <201606161158.u5GBwkd1042632@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jun 16 11:58:46 2016
New Revision: 301959
URL: https://svnweb.freebsd.org/changeset/base/301959

Log:
  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

Modified:
  head/sys/kern/kern_thread.c

Modified: head/sys/kern/kern_thread.c
==============================================================================
--- head/sys/kern/kern_thread.c	Thu Jun 16 11:55:24 2016	(r301958)
+++ head/sys/kern/kern_thread.c	Thu Jun 16 11:58:46 2016	(r301959)
@@ -669,11 +669,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606161158.u5GBwkd1042632>