forked from Mirrors/opensbi
		
	platform: Drop IPI warm init and exit hooks
Now that the SBI IPI core clears IPIs at warm boot in a generic way, none of the drivers or platforms use these hooks, and we can remove them. Platforms need only to initialize the driver once during cold init. If other hooks are needed in the future, they can be added to struct sbi_ipi_device. 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
						
							693afc818f
						
					
				
				
					commit
					86d2c1797a
				
			@@ -146,17 +146,9 @@ static int k210_irqchip_init(bool cold_boot)
 | 
			
		||||
	return plic_warm_irqchip_init(&plic, hartid * 2, hartid * 2 + 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int k210_ipi_init(bool cold_boot)
 | 
			
		||||
static int k210_ipi_init(void)
 | 
			
		||||
{
 | 
			
		||||
	int rc;
 | 
			
		||||
 | 
			
		||||
	if (cold_boot) {
 | 
			
		||||
		rc = aclint_mswi_cold_init(&mswi);
 | 
			
		||||
		if (rc)
 | 
			
		||||
			return rc;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
	return aclint_mswi_cold_init(&mswi);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int k210_timer_init(void)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user