Fix a uni-processor bug with the last commit... we weren't rescheduling on
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 17 Oct 2003 07:44:18 +0000 (07:44 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 17 Oct 2003 07:44:18 +0000 (07:44 +0000)
priority changes.

sys/kern/kern_switch.c

index 4f3f4dd..d9ada4e 100644 (file)
@@ -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 <sys/param.h>
@@ -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();
 }