From 8e4dc6232f5887cd2dedd61e11863e252221c60d Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 17 Dec 2002 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2002-12-17 --- port/edf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port/edf.c b/port/edf.c index aaac61896e8583cea3a5ac11997e47b209fddbcf..ad274c87ad09020b08a0c61b58bc319a167b66cf 100644 --- a/port/edf.c +++ b/port/edf.c @@ -738,6 +738,7 @@ edfrunproc(void) nilcount++; return nil; } + /* Figure out if the current proc should be preempted*/ ilock(&edflock); now = fastticks(nil); @@ -773,7 +774,7 @@ edfrunproc(void) /* released task is better than current */ DPRINT("%d edfrunproc: released\n", m->machno); edfdequeue(&qreleased); - assert(nt->runq.n >= 1); + assert(nt->runq.n >= 1 || (up && up->task == nt)); edfpush(nt); t = nt; t->scheduled = now;