diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-03-07 07:07:14 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-03-07 07:07:14 +0000 |
commit | 2fbec6a38212aa87373191afcd529acf2e335d70 (patch) | |
tree | 19134d6b45bcbcd9780b8b3c2d218724d57525c0 /sys/kern/kern_clock.c | |
parent | 0fa41f93507e1ea1c5c328bbf53dbc339546412c (diff) |
The scheduling 'nice' value is per-process, not per-thread, so move it
into struct process.
ok tedu@ deraadt@
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 7a7911fbe40..7e85444d988 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.71 2010/08/20 22:03:22 matthew Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.72 2011/03/07 07:07:13 guenther Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -491,7 +491,7 @@ statclock(struct clockframe *frame) * If this process is being profiled record the tick. */ p->p_uticks++; - if (p->p_nice > NZERO) + if (p->p_p->ps_nice > NZERO) spc->spc_cp_time[CP_NICE]++; else spc->spc_cp_time[CP_USER]++; |