summaryrefslogtreecommitdiff
path: root/platform/template
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2024-10-25 11:59:48 -0700
committerAnup Patel <[email protected]>2024-11-11 18:21:04 +0530
commit86d2c1797a44975e628bcf77e30e687fd6738e81 (patch)
tree655d5be8fb89fadf22932bea881cd4c8f617d7dd /platform/template
parent693afc818feecdbddb75f5c9ec4b436d56f64208 (diff)
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 <[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 d0f9f32c..9f1b3b0f 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -99,20 +99,12 @@ static int platform_irqchip_init(bool cold_boot)
}
/*
- * Initialize IPI for current HART.
+ * Initialize IPI during cold boot.
*/
-static int platform_ipi_init(bool cold_boot)
+static int platform_ipi_init(void)
{
- int ret;
-
/* Example if the generic ACLINT driver is used */
- if (cold_boot) {
- ret = aclint_mswi_cold_init(&mswi);
- if (ret)
- return ret;
- }
-
- return 0;
+ return aclint_mswi_cold_init(&mswi);
}
/*