aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-04-26 11:46:25 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-04-26 11:46:25 +0000
commit477a642cee98950f11ce12c94468b0156991a8eb (patch)
tree0b1362dc59c530540630177826b3e1cee9bb08bd /sys/vm
parent539fc95753f186bdf4f6d04d86484abd3c7f59c5 (diff)
Notes
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_kern.c8
-rw-r--r--sys/vm/vm_kern.h3
-rw-r--r--sys/vm/vm_meter.c4
-rw-r--r--sys/vm/vm_object.c6
4 files changed, 17 insertions, 4 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index a875230a78e9d..af36cfd225668 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -61,12 +61,14 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_kern.c,v 1.33 1997/02/22 09:48:21 peter Exp $
+ * $Id: vm_kern.c,v 1.34 1997/03/31 11:11:24 davidg Exp $
*/
/*
* Kernel memory management.
*/
+#include "opt_smp.h"
+#include "opt_smp_privpages.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -99,6 +101,10 @@ vm_map_t mb_map=0;
int mb_map_full=0;
vm_map_t io_map=0;
vm_map_t phys_map=0;
+#if defined(SMP) && defined(SMP_PRIVPAGES)
+vm_map_t ppage_map=0;
+#endif
+
/*
* kmem_alloc_pageable:
diff --git a/sys/vm/vm_kern.h b/sys/vm/vm_kern.h
index b23150f621a25..5d85318b42c82 100644
--- a/sys/vm/vm_kern.h
+++ b/sys/vm/vm_kern.h
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_kern.h,v 1.12 1997/02/22 09:48:21 peter Exp $
+ * $Id: vm_kern.h,v 1.13 1997/03/31 11:11:26 davidg Exp $
*/
#ifndef _VM_VM_KERN_H_
@@ -78,6 +78,7 @@ extern vm_map_t clean_map;
extern vm_map_t phys_map;
extern vm_map_t exec_map;
extern vm_map_t u_map;
+extern vm_map_t ppage_map;
extern vm_offset_t kernel_vm_end;
/* XXX - elsewhere? */
diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c
index c58423ce36361..b6ac38cb51a3f 100644
--- a/sys/vm/vm_meter.c
+++ b/sys/vm/vm_meter.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_meter.c 8.4 (Berkeley) 1/4/94
- * $Id$
+ * $Id: vm_meter.c,v 1.20 1997/02/22 09:48:25 peter Exp $
*/
#include <sys/param.h>
@@ -79,6 +79,8 @@ loadav(struct loadavg *avg)
register struct proc *p;
for (nrun = 0, p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
+ if (p->p_flag & P_IDLEPROC)
+ continue;
switch (p->p_stat) {
case SSLEEP:
if (p->p_priority > PZERO || p->p_slptime != 0)
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 4de7814a6a6e6..ded43748e9937 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id$
+ * $Id: vm_object.c,v 1.90 1997/02/22 09:48:28 peter Exp $
*/
/*
@@ -1451,6 +1451,10 @@ vm_object_in_map( object)
return 1;
if( _vm_object_in_map( u_map, object, 0))
return 1;
+#if defined(SMP) && defined(SMP_PRIVPAGES)
+ if( _vm_object_in_map( ppage_map, object, 0))
+ return 1;
+#endif
return 0;
}