Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/kern_sleepq.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/kern_sleepq.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -p -r1.4 -r1.4.2.1 --- src/sys/kern/kern_sleepq.c 2007/02/15 20:21:13 1.4 +++ src/sys/kern/kern_sleepq.c 2007/02/20 21:48:45 1.4.2.1 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_sleepq.c,v 1.4 2007/02/15 20:21:13 ad Exp $ */ +/* $NetBSD: kern_sleepq.c,v 1.4.2.1 2007/02/20 21:48:45 rmind Exp $ */ /*- * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_sleepq.c,v 1.4 2007/02/15 20:21:13 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_sleepq.c,v 1.4.2.1 2007/02/20 21:48:45 rmind Exp $"); #include "opt_multiprocessor.h" #include "opt_lockdebug.h" @@ -171,12 +171,11 @@ sleepq_remove(sleepq_t *sq, struct lwp * * Set it running. We'll try to get the last CPU that ran * this LWP to pick it up again. */ - if (l->l_slptime > 1) - updatepri(l); + sched_setrunnable(l); l->l_stat = LSRUN; l->l_slptime = 0; if ((l->l_flag & L_INMEM) != 0) { - setrunqueue(l); + sched_enqueue(l); if (l->l_priority < ci->ci_schedstate.spc_curpriority) cpu_need_resched(ci); sched_unlock(1);