Deleted Added
full compact
kern_thr.c (118835) kern_thr.c (118893)
1/*
2 * Copyright (c) 2003, Jeffrey Roberson <jeff@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

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2003, Jeffrey Roberson <jeff@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

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/kern/kern_thr.c 118835 2003-08-12 19:33:36Z jhb $");
28__FBSDID("$FreeBSD: head/sys/kern/kern_thr.c 118893 2003-08-14 03:56:24Z grehan $");
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/lock.h>
33#include <sys/mutex.h>
34#include <sys/proc.h>
35#include <sys/resourcevar.h>
36#include <sys/sched.h>

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

106#if 0
107 td->td_proc = NULL;
108#endif
109 td->td_ksegrp = NULL;
110 td->td_last_kse = NULL;
111 sched_exit_thread(TAILQ_NEXT(td, td_kglist), td);
112 thread_stash(td);
113
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/lock.h>
33#include <sys/mutex.h>
34#include <sys/proc.h>
35#include <sys/resourcevar.h>
36#include <sys/sched.h>

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

106#if 0
107 td->td_proc = NULL;
108#endif
109 td->td_ksegrp = NULL;
110 td->td_last_kse = NULL;
111 sched_exit_thread(TAILQ_NEXT(td, td_kglist), td);
112 thread_stash(td);
113
114#if !defined(__powerpc__)
115 cpu_throw(td, choosethread());
114 cpu_throw(td, choosethread());
116#else
117 cpu_throw();
118#endif
119}
120
121#define RANGEOF(type, start, end) (offsetof(type, end) - offsetof(type, start))
122
123/*
124 * System call interface.
125 */
126int

--- 134 unchanged lines hidden ---
115}
116
117#define RANGEOF(type, start, end) (offsetof(type, end) - offsetof(type, start))
118
119/*
120 * System call interface.
121 */
122int

--- 134 unchanged lines hidden ---