Deleted Added
full compact
kern_thread.c (172263) kern_thread.c (173004)
1/*-
2 * Copyright (C) 2001 Julian Elischer <julian@freebsd.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26 * DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 2001 Julian Elischer <julian@freebsd.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26 * DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/kern/kern_thread.c 172263 2007-09-21 04:04:22Z jeff $");
30__FBSDID("$FreeBSD: head/sys/kern/kern_thread.c 173004 2007-10-26 08:00:41Z julian $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>
37#include <sys/proc.h>
38#include <sys/resourcevar.h>

--- 613 unchanged lines hidden (view full) ---

652 td->td_flags &= ~TDF_DBSUSPEND;
653 if (TD_IS_SUSPENDED(td2))
654 thread_unsuspend_one(td2);
655 if (TD_ON_SLEEPQ(td2) &&
656 (td2->td_flags & TDF_SINTR))
657 sleepq_abort(td2, EINTR);
658 break;
659 case SINGLE_BOUNDARY:
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>
37#include <sys/proc.h>
38#include <sys/resourcevar.h>

--- 613 unchanged lines hidden (view full) ---

652 td->td_flags &= ~TDF_DBSUSPEND;
653 if (TD_IS_SUSPENDED(td2))
654 thread_unsuspend_one(td2);
655 if (TD_ON_SLEEPQ(td2) &&
656 (td2->td_flags & TDF_SINTR))
657 sleepq_abort(td2, EINTR);
658 break;
659 case SINGLE_BOUNDARY:
660 if (TD_IS_SUSPENDED(td2) &&
661 !(td2->td_flags & TDF_BOUNDARY))
662 thread_unsuspend_one(td2);
663 if (TD_ON_SLEEPQ(td2) &&
664 (td2->td_flags & TDF_SINTR))
665 sleepq_abort(td2, ERESTART);
666 break;
667 default:
668 if (TD_IS_SUSPENDED(td2)) {
669 thread_unlock(td2);
670 continue;
671 }
672 /*
673 * maybe other inhibited states too?

--- 296 unchanged lines hidden ---
660 break;
661 default:
662 if (TD_IS_SUSPENDED(td2)) {
663 thread_unlock(td2);
664 continue;
665 }
666 /*
667 * maybe other inhibited states too?

--- 296 unchanged lines hidden ---