| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2008-08-02 10:55:55 +01:00
										 |  |  |  *  arch/arm/include/asm/timex.h | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  |  * | 
					
						
							|  |  |  |  *  Copyright (C) 1997,1998 Russell King | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License version 2 as | 
					
						
							|  |  |  |  * published by the Free Software Foundation. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  Architecture Specific TIME specifications | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | #ifndef _ASMARM_TIMEX_H
 | 
					
						
							|  |  |  | #define _ASMARM_TIMEX_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef unsigned long cycles_t; | 
					
						
							| 
									
										
										
										
											2012-07-06 15:46:45 +01:00
										 |  |  | #define get_cycles()	({ cycles_t c; read_current_timer(&c) ? 0 : c; })
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 |