Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/procfs Use NZERO instead of hard-coded "20" value.
details: https://anonhg.NetBSD.org/src/rev/41d85bb8a0e2
branches: trunk
changeset: 330230:41d85bb8a0e2
user: njoly <njoly%NetBSD.org@localhost>
date: Mon Jun 30 14:58:59 2014 +0000
description:
Use NZERO instead of hard-coded "20" value.
diffstat:
sys/miscfs/procfs/procfs_linux.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f42980bf8a34 -r 41d85bb8a0e2 sys/miscfs/procfs/procfs_linux.c
--- a/sys/miscfs/procfs/procfs_linux.c Mon Jun 30 12:59:48 2014 +0000
+++ b/sys/miscfs/procfs/procfs_linux.c Mon Jun 30 14:58:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_linux.c,v 1.67 2014/04/05 18:42:32 christos Exp $ */
+/* $NetBSD: procfs_linux.c,v 1.68 2014/06/30 14:58:59 njoly Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.67 2014/04/05 18:42:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.68 2014/06/30 14:58:59 njoly Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -467,7 +467,7 @@
(long)USEC_2_TICKS(cru->ru_stime.tv_usec),
l->l_priority, /* XXX: priority */
- p->p_nice - 20,
+ p->p_nice - NZERO,
0,
(long long)rt.tv_sec,
Home |
Main Index |
Thread Index |
Old Index