Module Name: src
Committed By: enami
Date: Tue Nov 16 03:49:54 UTC 2010
Modified Files:
src/sys/uvm: uvm_meter.c
Log Message:
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).
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/uvm/uvm_meter.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm_meter.c
diff -u src/sys/uvm/uvm_meter.c:1.53 src/sys/uvm/uvm_meter.c:1.54
--- src/sys/uvm/uvm_meter.c:1.53 Sat Nov 6 12:18:17 2010
+++ src/sys/uvm/uvm_meter.c Tue Nov 16 03:49:53 2010
@@ -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++;