diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-19 16:33:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-19 16:33:21 +0000 |
commit | 53523b94f850e183b09c883fbe1bb705c16a64e2 (patch) | |
tree | 3ee368634ccc725a0a09e4ee632b34b83ede28d1 /sys/kern | |
parent | 136a8fc3558a2072bbfb6a43b0e68a5d31c51fad (diff) |
When doing an assertion for phz, just do it once when we set phz,
not once per process.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_synch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index b04530fefd3..b6307d390bf 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.29 2000/11/10 18:15:47 art Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.30 2001/02/19 16:33:20 art Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -229,6 +229,7 @@ schedcpu(arg) * clock available) */ phz = stathz ? stathz : profhz; + KASSERT(phz); for (p = LIST_FIRST(&allproc); p != 0; p = LIST_NEXT(p, p_list)) { /* @@ -250,7 +251,6 @@ schedcpu(arg) /* * p_pctcpu is only for ps. */ - KASSERT(phz); #if (FSHIFT >= CCPU_SHIFT) p->p_pctcpu += (phz == 100)? ((fixpt_t) p->p_cpticks) << (FSHIFT - CCPU_SHIFT): |