diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-22 14:07:15 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-22 14:07:15 +0000 |
commit | 97251873e7c47c40ca4aa4d0d8beb5a8338da08c (patch) | |
tree | c4fc373563e414c124a7352e3786c28d6ab97612 | |
parent | 5ea2ff01cd30db990134b1062b5f43bed2ee149b (diff) |
kill 2 bogus ARGUSED and use the LIST_FOREACH() macro
instead of handrolling...
ok miod@
-rw-r--r-- | sys/kern/sched_bsd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/sched_bsd.c b/sys/kern/sched_bsd.c index 80d418201ba..2bfbadbec94 100644 --- a/sys/kern/sched_bsd.c +++ b/sys/kern/sched_bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sched_bsd.c,v 1.15 2007/11/26 17:15:29 art Exp $ */ +/* $OpenBSD: sched_bsd.c,v 1.16 2008/05/22 14:07:14 thib Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -89,7 +89,6 @@ scheduler_start(void) /* * Force switch among equal priority processes every 100ms. */ -/* ARGSUSED */ void roundrobin(struct cpu_info *ci) { @@ -204,7 +203,6 @@ fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */ /* * Recompute process priorities, every hz ticks. */ -/* ARGSUSED */ void schedcpu(void *arg) { @@ -224,7 +222,7 @@ schedcpu(void *arg) phz = stathz ? stathz : profhz; KASSERT(phz); - for (p = LIST_FIRST(&allproc); p != NULL; p = LIST_NEXT(p, p_list)) { + LIST_FOREACH(p, &allproc, p_list) { /* * Increment time in/out of memory and sleep time * (if sleeping). We ignore overflow; with 16-bit int's |