From: Matthew Dillon Date: Fri, 17 Oct 2003 07:44:18 +0000 (+0000) Subject: Fix a uni-processor bug with the last commit... we weren't rescheduling on X-Git-Tag: v2.0.1~12818 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/cf2d50015ea5f81034757768ef917e8737eb6a8a Fix a uni-processor bug with the last commit... we weren't rescheduling on priority changes. --- diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 4f3f4dd975..d9ada4e197 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_switch.c,v 1.3.2.1 2000/05/16 06:58:12 dillon Exp $ - * $DragonFly: src/sys/kern/Attic/kern_switch.c,v 1.11 2003/10/17 07:30:42 dillon Exp $ + * $DragonFly: src/sys/kern/Attic/kern_switch.c,v 1.12 2003/10/17 07:44:18 dillon Exp $ */ #include @@ -395,6 +395,10 @@ setrunqueue(struct proc *p) ++remote_resched_nonaffinity; } } +#else + if (p->p_priority / PPQ < gd->gd_upri / PPQ) { + need_resched(); + } #endif crit_exit(); }