diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-10-25 00:04:16 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-10-25 00:04:16 +0000 |
| commit | 915cf38b11b5b1e69b6e03accca99fb472fc985a (patch) | |
| tree | e6e20817a8c7c03a88c5ec5038a40c9e6c2445b9 /sys | |
| parent | d543796f86e35391aed82a33616584d52123f209 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/vm/vm_glue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index ea39d7f1305c..82e22bafcb80 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -75,10 +75,10 @@ #include <sys/kernel.h> #include <sys/ktr.h> +#include <sys/mutex.h> #include <sys/unistd.h> #include <machine/limits.h> -#include <machine/mutex.h> #include <vm/vm.h> #include <vm/vm_param.h> @@ -318,11 +318,11 @@ faultin(p) s = splhigh(); + mtx_enter(&sched_lock, MTX_SPIN); if (p->p_stat == SRUN) { - mtx_enter(&sched_lock, MTX_SPIN); setrunqueue(p); - mtx_exit(&sched_lock, MTX_SPIN); } + mtx_exit(&sched_lock, MTX_SPIN); p->p_flag |= P_INMEM; |
