summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_smp.c
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-02-19 14:25:37 +0000
committerluoqi <luoqi@FreeBSD.org>1999-02-19 14:25:37 +0000
commit082d37c1acacd0403f5fb2883c7a0203c86baa10 (patch)
tree43d75fbf23c63e0d76e25bdb477e9f3abea2d101 /sys/kern/subr_smp.c
parent34a83c58695826a346644074e092787f655b3394 (diff)
downloadFreeBSD-src-082d37c1acacd0403f5fb2883c7a0203c86baa10.zip
FreeBSD-src-082d37c1acacd0403f5fb2883c7a0203c86baa10.tar.gz
Hide access to vmspace:vm_pmap with inline function vmspace_pmap(). This
is the preparation step for moving pmap storage out of vmspace proper. Reviewed by: Alan Cox <alc@cs.rice.edu> Matthew Dillion <dillon@apollo.backplane.com>
Diffstat (limited to 'sys/kern/subr_smp.c')
-rw-r--r--sys/kern/subr_smp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index bd188d3..e353284 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.88 1999/01/20 04:24:22 jkh Exp $
+ * $Id: mp_machdep.c,v 1.89 1999/01/28 01:59:50 dillon Exp $
*/
#include "opt_smp.h"
@@ -2390,8 +2390,7 @@ forwarded_statclock(int id, int pscnt, int *astmap)
ru->ru_ixrss += vm->vm_tsize * PAGE_SIZE / 1024;
ru->ru_idrss += vm->vm_dsize * PAGE_SIZE / 1024;
ru->ru_isrss += vm->vm_ssize * PAGE_SIZE / 1024;
- rss = vm->vm_pmap.pm_stats.resident_count *
- PAGE_SIZE / 1024;
+ rss = vmspace_resident_count(vm) * PAGE_SIZE / 1024;
if (ru->ru_maxrss < rss)
ru->ru_maxrss = rss;
}
OpenPOWER on IntegriCloud