summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-30 18:51:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-30 18:51:00 +0000
commit2028af55221c7d517ec81d8df25c7deb4a163774 (patch)
tree14ed5fab85477f3a9d662746cc914503fd118a7e
parent07bcd824b74db6726b51f7286897c5d7db889d06 (diff)
do not count proc0 faults (happens in amiga pmap_init)
-rw-r--r--sys/vm/vm_fault.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 4cbb134dde5..45ba17b3e10 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_fault.c,v 1.15 1998/03/26 21:36:18 chuck Exp $ */
+/* $OpenBSD: vm_fault.c,v 1.16 1998/03/30 18:50:59 niklas Exp $ */
/* $NetBSD: vm_fault.c,v 1.21 1998/01/31 04:02:39 ross Exp $ */
/*
@@ -286,7 +286,8 @@ vm_fault(map, vaddr, fault_type, change_wiring)
* Mark page busy for other threads.
*/
m->flags |= PG_BUSY;
- curproc->p_addr->u_stats.p_ru.ru_minflt++;
+ if (curproc != &proc0)
+ curproc->p_addr->u_stats.p_ru.ru_minflt++;
break;
}
@@ -345,7 +346,9 @@ vm_fault(map, vaddr, fault_type, change_wiring)
m->flags &= ~PG_FAKE;
m->flags |= PG_CLEAN;
pmap_clear_modify(VM_PAGE_TO_PHYS(m));
- curproc->p_addr->u_stats.p_ru.ru_majflt++;
+ if (curproc != &proc0)
+ curproc->p_addr->
+ u_stats.p_ru.ru_majflt++;
break;
}
@@ -410,7 +413,8 @@ vm_fault(map, vaddr, fault_type, change_wiring)
vm_page_zero_fill(m);
cnt.v_zfod++;
m->flags &= ~PG_FAKE;
- curproc->p_addr->u_stats.p_ru.ru_minflt++;
+ if (curproc != &proc0)
+ curproc->p_addr->u_stats.p_ru.ru_minflt++;
break;
}
else {