Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Nowadays, comparing priority against PZERO doesn't m...



details:   https://anonhg.NetBSD.org/src/rev/0e265cb44589
branches:  trunk
changeset: 758813:0e265cb44589
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Nov 16 03:49:53 2010 +0000

description:
Nowadays, comparing priority against PZERO doesn't make any sense.
Instead, see if a process waits uninterruptibly like ps does,
so that the second column (`b') of default vmstat output prints
some useful value (-t is still broken though).

diffstat:

 sys/uvm/uvm_meter.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r af1de605ab07 -r 0e265cb44589 sys/uvm/uvm_meter.c
--- a/sys/uvm/uvm_meter.c       Tue Nov 16 03:02:20 2010 +0000
+++ b/sys/uvm/uvm_meter.c       Tue Nov 16 03:49:53 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_meter.c,v 1.53 2010/11/06 12:18:17 uebayasi Exp $  */
+/*     $NetBSD: uvm_meter.c,v 1.54 2010/11/16 03:49:53 enami Exp $     */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.53 2010/11/06 12:18:17 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.54 2010/11/16 03:49:53 enami Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -310,7 +310,7 @@
 
                case LSSLEEP:
                case LSSTOP:
-                       if (lwp_eprio(l) <= PZERO) {
+                       if ((l->l_flag & LW_SINTR) == 0) {
                                totalp->t_dw++;
                        } else if (l->l_slptime < maxslp) {
                                totalp->t_sl++;



Home | Main Index | Thread Index | Old Index