mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 15:51:41 +01:00
lib: Remove source_hart and hartid parameter from IPI callbacks
The source_hart and hartid parameter is really not required in IPI callbacks of sbi_platform because current hartid can always be obtained by calling sbi_current_hartid() API. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -90,7 +90,7 @@ static int virt_irqchip_init(u32 hartid, bool cold_boot)
|
||||
(2 * hartid + 1));
|
||||
}
|
||||
|
||||
static int virt_ipi_init(u32 hartid, bool cold_boot)
|
||||
static int virt_ipi_init(bool cold_boot)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -101,7 +101,7 @@ static int virt_ipi_init(u32 hartid, bool cold_boot)
|
||||
return rc;
|
||||
}
|
||||
|
||||
return clint_warm_ipi_init(hartid);
|
||||
return clint_warm_ipi_init();
|
||||
}
|
||||
|
||||
static int virt_timer_init(u32 hartid, bool cold_boot)
|
||||
|
Reference in New Issue
Block a user