Deleted Added
full compact
kern_thread.c (109550) kern_thread.c (109623)
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

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

20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
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 *
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

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

20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
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 * $FreeBSD: head/sys/kern/kern_thread.c 109550 2003-01-20 03:41:04Z julian $
28 * $FreeBSD: head/sys/kern/kern_thread.c 109623 2003-01-21 08:56:16Z alfred $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/lock.h>
35#include <sys/malloc.h>
36#include <sys/mutex.h>

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

724}
725
726/*
727 * Allocate a ksegrp.
728 */
729struct ksegrp *
730ksegrp_alloc(void)
731{
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/lock.h>
35#include <sys/malloc.h>
36#include <sys/mutex.h>

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

724}
725
726/*
727 * Allocate a ksegrp.
728 */
729struct ksegrp *
730ksegrp_alloc(void)
731{
732 return (uma_zalloc(ksegrp_zone, M_WAITOK));
732 return (uma_zalloc(ksegrp_zone, 0));
733}
734
735/*
736 * Allocate a kse.
737 */
738struct kse *
739kse_alloc(void)
740{
733}
734
735/*
736 * Allocate a kse.
737 */
738struct kse *
739kse_alloc(void)
740{
741 return (uma_zalloc(kse_zone, M_WAITOK));
741 return (uma_zalloc(kse_zone, 0));
742}
743
744/*
745 * Allocate a thread.
746 */
747struct thread *
748thread_alloc(void)
749{
750 thread_reap(); /* check if any zombies to get */
742}
743
744/*
745 * Allocate a thread.
746 */
747struct thread *
748thread_alloc(void)
749{
750 thread_reap(); /* check if any zombies to get */
751 return (uma_zalloc(thread_zone, M_WAITOK));
751 return (uma_zalloc(thread_zone, 0));
752}
753
754/*
755 * Deallocate a ksegrp.
756 */
757void
758ksegrp_free(struct ksegrp *td)
759{

--- 1115 unchanged lines hidden ---
752}
753
754/*
755 * Deallocate a ksegrp.
756 */
757void
758ksegrp_free(struct ksegrp *td)
759{

--- 1115 unchanged lines hidden ---