diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-06-01 08:23:53 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-06-01 08:23:53 +0000 |
commit | 35f53f5fa95074a840506dd77482efa21bc8f6fd (patch) | |
tree | 132dedfbc1771eed3792820b19e51a7a852acc71 /sys/kern/tty.c | |
parent | d5d88eb4552e6aed99cc2ee1850aca8195a7d16c (diff) |
remove the "ifdef pmap_resident_count" hack and replace it with a macro.
change some &vm->vm_pmap to vm->vm_map.pmap
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index d3c6411e946..6ad0d516372 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.36 1998/03/28 10:03:04 deraadt Exp $ */ +/* $OpenBSD: tty.c,v 1.37 1999/06/01 08:23:52 art Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -2037,12 +2037,7 @@ ttyinfo(tp) ttyprintf(tp, "%d%% %ldk\n", tmp / 100, pick->p_stat == SIDL || pick->p_stat == SZOMB ? 0 : -#ifdef pmap_resident_count - pgtok(pmap_resident_count(&pick->p_vmspace->vm_pmap)) -#else - pgtok(pick->p_vmspace->vm_rssize) -#endif - ); + vm_resident_count(pick->p_vmspace)); } tp->t_rocount = 0; /* so pending input will be retyped if BS */ } |