Deleted Added
full compact
kern_thread.c (118486) kern_thread.c (118607)
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 118486 2003-08-05 12:00:55Z davidxu $");
30__FBSDID("$FreeBSD: head/sys/kern/kern_thread.c 118607 2003-08-07 15:04:27Z jhb $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/malloc.h>
37#include <sys/mutex.h>
38#include <sys/proc.h>

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

1160static int
1161thread_update_usr_ticks(struct thread *td, int user)
1162{
1163 struct proc *p = td->td_proc;
1164 struct kse_thr_mailbox *tmbx;
1165 struct kse_upcall *ku;
1166 struct ksegrp *kg;
1167 caddr_t addr;
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/malloc.h>
37#include <sys/mutex.h>
38#include <sys/proc.h>

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

1160static int
1161thread_update_usr_ticks(struct thread *td, int user)
1162{
1163 struct proc *p = td->td_proc;
1164 struct kse_thr_mailbox *tmbx;
1165 struct kse_upcall *ku;
1166 struct ksegrp *kg;
1167 caddr_t addr;
1168 uint uticks;
1168 u_int uticks;
1169
1170 if ((ku = td->td_upcall) == NULL)
1171 return (-1);
1172
1173 tmbx = (void *)fuword((void *)&ku->ku_mailbox->km_curthread);
1174 if ((tmbx == NULL) || (tmbx == (void *)-1))
1175 return (-1);
1176 if (user) {

--- 930 unchanged lines hidden ---
1169
1170 if ((ku = td->td_upcall) == NULL)
1171 return (-1);
1172
1173 tmbx = (void *)fuword((void *)&ku->ku_mailbox->km_curthread);
1174 if ((tmbx == NULL) || (tmbx == (void *)-1))
1175 return (-1);
1176 if (user) {

--- 930 unchanged lines hidden ---