From 53523b94f850e183b09c883fbe1bb705c16a64e2 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Mon, 19 Feb 2001 16:33:21 +0000 Subject: When doing an assertion for phz, just do it once when we set phz, not once per process. --- sys/kern/kern_synch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern') 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): -- cgit v1.2.3