platform: Drop irqchip warm init and exit hooks

Now that driver lifecycle is managed from within the SBI irqchip 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:
Samuel Holland
2024-11-04 20:10:09 -08:00
committed by Anup Patel
parent 2dd6eaf680
commit 678f5909a3
13 changed files with 26 additions and 150 deletions

View File

@@ -87,20 +87,12 @@ static int platform_final_init(bool cold_boot)
}
/*
* Initialize the platform interrupt controller for current HART.
* Initialize the platform interrupt controller during cold boot.
*/
static int platform_irqchip_init(bool cold_boot)
static int platform_irqchip_init(void)
{
int ret;
/* Example if the generic PLIC driver is used */
if (cold_boot) {
ret = plic_cold_irqchip_init(&plic);
if (ret)
return ret;
}
return 0;
return plic_cold_irqchip_init(&plic);
}
/*