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

1990/1004/gnot/clock.c (diff list | history)

1990/0728/sys/src/9/gnot/clock.c:102,1081990/1004/sys/src/9/gnot/clock.c:102,109 (short | long | prev | next)
1990/03091    
	p = m->proc; 
1990/0312    
	if(p){ 
		p->pc = ur->pc; 
1990/03091    
		p->time[p->insyscall]++; 
1990/1004    
		if (p->state==Running) 
			p->time[p->insyscall]++; 
1990/0312    
	} 
1990/03091    
	if(canlock(&m->alarmlock)){ 
		if(m->alarm){ 
1990/0728/sys/src/9/gnot/clock.c:127,1381990/1004/sys/src/9/gnot/clock.c:128,136
1990/03091    
	} 
1990/0321    
	kbdclock(); 
1990/0504    
	mouseclock(); 
1990/03091    
	if((ur->sr&SPL(7)) == 0){ 
		spllo(); 
1990/0703    
		if(p && p->state==Running){ 
1990/0321    
			checksched(); 
1990/0703    
			if(u->nnote && (ur->sr&SUPER)==0) 
				notify(ur); 
		} 
1990/1004    
	if((ur->sr&SPL(7)) == 0 && p && p->state==Running){ 
		sched(); 
		if(u->nnote && (ur->sr&SUPER)==0) 
			notify(ur); 
1990/03091    
	} 
} 


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