diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-17 17:57:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-17 17:57:33 +0000 |
commit | 61389fa3dc6ef327958543eba3ce6d968d88cb4c (patch) | |
tree | b9b0065603b43ce752cc3330e11a86c19b136784 /sys/kern | |
parent | e591472c67e81658c53221657e0367b2bd026a78 (diff) |
Don't bother performing ITIMER accounting on P_SYSTEM processes (i.e. kthreads).
ok art@ kettenis@
Diffstat (limited to 'sys/kern')
-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 e0fcc5d4cc4..fa1ed4d7450 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.62 2007/03/25 11:35:01 art Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.63 2007/04/17 17:57:32 miod Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -231,7 +231,7 @@ hardclock(struct clockframe *frame) #endif p = curproc; - if (p && ((p->p_flag & P_WEXIT) == 0)) { + if (p && ((p->p_flag & (P_SYSTEM | P_WEXIT)) == 0)) { struct pstats *pstats; /* |