mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	Don't try to use CLOCK_MONOTONIC_COARSE on OS'es that don't support it
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
		
							parent
							
								
									95ea5d5c0b
								
							
						
					
					
						commit
						843beb152b
					
				@ -267,7 +267,9 @@ static void gettime(struct timespec *ts)
 | 
			
		||||
{
 | 
			
		||||
	memset(ts, 0, sizeof(*ts));
 | 
			
		||||
 | 
			
		||||
#ifdef CLOCK_MONOTONIC_COARSE
 | 
			
		||||
	if (clock_gettime(CLOCK_MONOTONIC_COARSE, ts))
 | 
			
		||||
#endif
 | 
			
		||||
		clock_gettime(CLOCK_MONOTONIC, ts);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user