diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_exit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 7a2b5b3..961738d 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -62,8 +62,6 @@ #include <sys/aio.h> #include <sys/jail.h> -#include <machine/limits.h> /* for UCHAR_MAX = typeof(p_priority)_MAX */ - #include <vm/vm.h> #include <vm/vm_param.h> #include <sys/lock.h> @@ -430,8 +428,8 @@ loop: if (p->p_stat == SZOMB) { /* charge childs scheduling cpu usage to parent */ if (curproc->p_pid != 1) { - curproc->p_estcpu = min(curproc->p_estcpu + - p->p_estcpu, UCHAR_MAX); + curproc->p_estcpu = + ESTCPULIM(curproc->p_estcpu + p->p_estcpu); } q->p_retval[0] = p->p_pid; |