summaryrefslogtreecommitdiff
path: root/platform/template
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2024-11-04 20:10:09 -0800
committerAnup Patel <[email protected]>2024-11-28 11:46:36 +0530
commit678f5909a3fe54d528276f9afce5dd3148e42cbf (patch)
treebd3377085a71ed54c2e80a3a0a98a3cff24185cc /platform/template
parent2dd6eaf680556e763a85b0b4ae180391e2671854 (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/template')
-rw-r--r--platform/template/platform.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c
index c7af31ab..bc351bc9 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -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);
}
/*