plan 9 kernel history: overview | file list | diff list

2002/0411/port/edf.c (diff list | history)

2002/0410/sys/src/9/port/edf.c:104,1132002/0411/sys/src/9/port/edf.c:104,110 (short | long | prev | next)
2002/0315    
int 
2002/0410    
edfanyready(void) 
2002/0315    
{ 
	/* If any edf tasks (with runnable procs in them) are released, 
	 * at least one of them must be on the stack 
	 */ 
	return edfstack[m->machno].head != nil; 
2002/0411    
	return edfstack[m->machno].head || qreleased.head; 
2002/0315    
} 
 
static void 
2002/0410/sys/src/9/port/edf.c:686,6912002/0411/sys/src/9/port/edf.c:683,693
2002/0315    
	static ulong nilcount; 
2002/0410    
	int i; 
2002/0315    
 
2002/0411    
	if (edfstack[m->machno].head == nil && qreleased.head== nil){ 
		// quick way out 
		nilcount++; 
		return nil; 
	} 
2002/0315    
	/* Figure out if the current proc should be preempted*/ 
	ilock(&edflock); 
	now = fastticks(nil); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)