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

2000/0726/mpc/mem.h (diff list | history)

2000/0516/sys/src/9/mpc/mem.h:32,382000/0726/sys/src/9/mpc/mem.h:32,38 (short | long | prev | next)
1999/0121    
#define	MS2HZ		(1000/HZ)		/* millisec per clock tick */ 
#define	TK2SEC(t)	((t)/HZ)		/* ticks to seconds */ 
#define	TK2MS(t)	((t)*MS2HZ)		/* ticks to milliseconds */ 
#define	MS2TK(t)	((t)/MS2HZ)		/* milliseconds to ticks */ 
2000/0726    
#define	MS2TK(t)	(((t)*HZ+500)/1000)	/* milliseconds to closest tick */ 
1999/0121    
 
/* Bit encodings for Machine State Register (MSR) */ 
#define MSR_POW		(1<<18)		/* Enable Power Management */ 


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