forked from Mirrors/opensbi
		
	platform: Drop timer warm init and exit hooks
Now that driver lifecycle is managed from within the SBI timer core, platforms need only to initialize the driver once during cold init. Remove the remaining platform hooks that are no longer used. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							4500828743
						
					
				
				
					commit
					99b01ab610
				
			@@ -178,19 +178,11 @@ static int openpiton_ipi_init(bool cold_boot)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Initialize openpiton timer for current HART.
 | 
			
		||||
 * Initialize openpiton timer during cold boot.
 | 
			
		||||
 */
 | 
			
		||||
static int openpiton_timer_init(bool cold_boot)
 | 
			
		||||
static int openpiton_timer_init(void)
 | 
			
		||||
{
 | 
			
		||||
	int ret;
 | 
			
		||||
 | 
			
		||||
	if (cold_boot) {
 | 
			
		||||
		ret = aclint_mtimer_cold_init(&mtimer, NULL);
 | 
			
		||||
		if (ret)
 | 
			
		||||
			return ret;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
	return aclint_mtimer_cold_init(&mtimer, NULL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user