summaryrefslogtreecommitdiff
path: root/platform/template
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-10-25 21:59:48 +0300
committerAnup Patel <anup@brainfault.org>2024-11-11 15:51:04 +0300
commit86d2c1797a44975e628bcf77e30e687fd6738e81 (patch)
tree655d5be8fb89fadf22932bea881cd4c8f617d7dd /platform/template
parent693afc818feecdbddb75f5c9ec4b436d56f64208 (diff)
downloadopensbi-86d2c1797a44975e628bcf77e30e687fd6738e81.tar.xz
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>
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 d0f9f32..9f1b3b0 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);
}
/*