diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-02-26 05:10:41 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-02-26 05:10:41 +0000 |
commit | 2f5d579dd9378450f2c2f1627bb16331ed82f9e7 (patch) | |
tree | 415c7acab8728c2059dedd651fb604b3cb1bbf48 /sys/kern/kern_synch.c | |
parent | bdf5e8705d9964417b0f2083918d9ac81874de35 (diff) |
uvm allocation and name changes
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index e89230eb08c..d6c6bf7a23b 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.13 1998/11/15 16:45:16 art Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.14 1999/02/26 05:10:40 art Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -49,6 +49,11 @@ #include <sys/signalvar.h> #include <sys/resourcevar.h> #include <vm/vm.h> + +#if defined(UVM) +#include <uvm/uvm_extern.h> +#endif + #ifdef KTRACE #include <sys/ktrace.h> #endif @@ -221,7 +226,11 @@ schedcpu(arg) } splx(s); } +#if defined(UVM) + uvm_meter(); +#else vmmeter(); +#endif wakeup((caddr_t)&lbolt); timeout(schedcpu, (void *)0, hz); } @@ -604,7 +613,11 @@ mi_switch() /* * Pick a new current process and record its start time. */ +#if defined(UVM) + uvmexp.swtch++; +#else cnt.v_swtch++; +#endif cpu_switch(p); microtime(&runtime); } |