~kris/9p

9hist

8e4dc6232f5887cd2dedd61e11863e252221c60d — David du Colombier 23 years ago de5fbb9
Plan 9 from Bell Labs 2002-12-17
1 files changed, 2 insertions(+), 1 deletions(-)

M port/edf.c
M port/edf.c => port/edf.c +2 -1
@@ 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;