Deleted Added
full compact
kern_umtx.c (158718) kern_umtx.c (161599)
1/*-
2 * Copyright (c) 2004, David Xu <davidxu@freebsd.org>
3 * Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2004, David Xu <davidxu@freebsd.org>
3 * Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/kern/kern_umtx.c 158718 2006-05-18 08:43:46Z davidxu $");
29__FBSDID("$FreeBSD: head/sys/kern/kern_umtx.c 161599 2006-08-25 06:12:53Z davidxu $");
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/limits.h>
34#include <sys/lock.h>
35#include <sys/malloc.h>
36#include <sys/mutex.h>
37#include <sys/proc.h>

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

596 return (ret);
597 umtxq_lock(&key);
598 ret = umtxq_signal(&key, n_wake);
599 umtxq_unlock(&key);
600 umtx_key_release(&key);
601 return (0);
602}
603
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/limits.h>
34#include <sys/lock.h>
35#include <sys/malloc.h>
36#include <sys/mutex.h>
37#include <sys/proc.h>

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

596 return (ret);
597 umtxq_lock(&key);
598 ret = umtxq_signal(&key, n_wake);
599 umtxq_unlock(&key);
600 umtx_key_release(&key);
601 return (0);
602}
603
604void
605umtx_pi_adjust(struct thread *td __unused, u_char oldpri __unused)
606{
607}
608
604int
605_umtx_lock(struct thread *td, struct _umtx_lock_args *uap)
606 /* struct umtx *umtx */
607{
608 return _do_lock(td, uap->umtx, td->td_tid, 0);
609}
610
611int

--- 60 unchanged lines hidden ---
609int
610_umtx_lock(struct thread *td, struct _umtx_lock_args *uap)
611 /* struct umtx *umtx */
612{
613 return _do_lock(td, uap->umtx, td->td_tid, 0);
614}
615
616int

--- 60 unchanged lines hidden ---