Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm removed code from uvmpdpol_needsscan_p that got ther...



details:   https://anonhg.NetBSD.org/src/rev/e161d180e114
branches:  trunk
changeset: 773294:e161d180e114
user:      para <para%NetBSD.org@localhost>
date:      Mon Jan 30 17:21:52 2012 +0000

description:
removed code from uvmpdpol_needsscan_p that got there by mistake
pointed out by yamt@

diffstat:

 sys/uvm/uvm_pdpolicy_clock.c |  20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)

diffs (42 lines):

diff -r 5279aa6b344e -r e161d180e114 sys/uvm/uvm_pdpolicy_clock.c
--- a/sys/uvm/uvm_pdpolicy_clock.c      Mon Jan 30 17:03:58 2012 +0000
+++ b/sys/uvm/uvm_pdpolicy_clock.c      Mon Jan 30 17:21:52 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pdpolicy_clock.c,v 1.16 2012/01/28 00:00:06 rmind Exp $    */
+/*     $NetBSD: uvm_pdpolicy_clock.c,v 1.17 2012/01/30 17:21:52 para Exp $     */
 /*     NetBSD: uvm_pdaemon.c,v 1.72 2006/01/05 10:47:33 yamt Exp $     */
 
 /*
@@ -69,7 +69,7 @@
 #else /* defined(PDSIM) */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clock.c,v 1.16 2012/01/28 00:00:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clock.c,v 1.17 2012/01/30 17:21:52 para Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -419,22 +419,8 @@
 bool
 uvmpdpol_needsscan_p(void)
 {
-       vmem_size_t kva_size, kva_free;
 
-       kva_size = vmem_size(kmem_arena, VMEM_FREE | VMEM_ALLOC);
-       kva_free = vmem_size(kmem_arena, VMEM_FREE);
-
-       if (kva_free < (kva_size / 10)) {
-               return true;
-       }
-
-       if (pdpol_state.s_inactive < pdpol_state.s_inactarg) {
-               return true;
-       }
-       if (pdpol_state.s_inactive < pdpol_state.s_inactarg) {
-               return true;
-       }
-       return false;
+       return pdpol_state.s_inactive < pdpol_state.s_inactarg;
 }
 
 void



Home | Main Index | Thread Index | Old Index