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

1994/0507/pc/clock.c (diff list | history)

1994/0302/sys/src/9/pc/clock.c:53,591994/0507/sys/src/9/pc/clock.c:53,58 (short | long | prev | next)
call mouseclock at end of clock interrupt because it might spllo (BUG fix?)
rsc Fri Mar 4 12:44:25 2005
1993/1124    
	m->ticks++; 
 
	checkalarms(); 
	mouseclock(); 
1994/0128    
	hardclock(); 
1994/0219    
	uartclock(); 
1993/1124    
 
1994/0302/sys/src/9/pc/clock.c:70,851994/0507/sys/src/9/pc/clock.c:69,86
1993/1124    
	nrun = (nrdy+nrun)*1000; 
	MACHP(0)->load = (MACHP(0)->load*19+nrun)/20; 
 
	if(up == 0 || (ur->cs&0xffff) != UESEL || up->state != Running) 
		return; 
1994/0507    
	if(up && (ur->cs&0xffff) == UESEL && up->state == Running){ 
		if(anyready()) 
			sched(); 
	 
		/* user profiling clock */ 
		spllo();		/* in case we fault */ 
		(*(ulong*)(USTKTOP-BY2WD)) += TK2MS(1); 
		splhi(); 
	} 
1993/1124    
 
	if(anyready()) 
		sched(); 
                 
	/* user profiling clock */ 
	spllo();		/* in case we fault */ 
	(*(ulong*)(USTKTOP-BY2WD)) += TK2MS(1); 
	splhi(); 
1994/0507    
	/* last because it could spllo() */ 
	mouseclock(); 
1993/1124    
} 
 
1994/0302    
/* 


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