Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern use callout_schedule() for schedcpu().



details:   https://anonhg.NetBSD.org/src/rev/b04e02031625
branches:  trunk
changeset: 566565:b04e02031625
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed May 12 20:13:58 2004 +0000

description:
use callout_schedule() for schedcpu().

diffstat:

 sys/kern/kern_synch.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 907487288cd0 -r b04e02031625 sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c     Wed May 12 20:12:37 2004 +0000
+++ b/sys/kern/kern_synch.c     Wed May 12 20:13:58 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_synch.c,v 1.142 2004/03/14 01:08:47 cl Exp $      */
+/*     $NetBSD: kern_synch.c,v 1.143 2004/05/12 20:13:58 yamt Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.142 2004/03/14 01:08:47 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.143 2004/05/12 20:13:58 yamt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ktrace.h"
@@ -125,7 +125,7 @@
 __inline void sa_awaken(struct lwp *);
 __inline void awaken(struct lwp *);
 
-struct callout schedcpu_ch = CALLOUT_INITIALIZER;
+struct callout schedcpu_ch = CALLOUT_INITIALIZER_SETFUNC(schedcpu, NULL);
 
 
 
@@ -317,7 +317,7 @@
        proclist_unlock_read();
        uvm_meter();
        wakeup((caddr_t)&lbolt);
-       callout_reset(&schedcpu_ch, hz, schedcpu, NULL);
+       callout_schedule(&schedcpu_ch, hz);
 }
 
 /*



Home | Main Index | Thread Index | Old Index