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
@@ -162,19 +162,11 @@ static int openpiton_irqchip_init(bool cold_boot)
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize IPI for current HART.
|
||||
* Initialize IPI during cold boot.
|
||||
*/
|
||||
static int openpiton_ipi_init(bool cold_boot)
|
||||
static int openpiton_ipi_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (cold_boot) {
|
||||
ret = aclint_mswi_cold_init(&mswi);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return aclint_mswi_cold_init(&mswi);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user