mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-26 08:21:30 +01:00
lib: Remove target_hart and hartid parameter from TIMER callbacks
The target_hart and hartid paramter of TIMER callbacks is not required because it always current hartid which can be obtained using sbi_current_hartid() API. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -105,7 +105,7 @@ static int sifive_u_ipi_init(bool cold_boot)
|
||||
return clint_warm_ipi_init();
|
||||
}
|
||||
|
||||
static int sifive_u_timer_init(u32 hartid, bool cold_boot)
|
||||
static int sifive_u_timer_init(bool cold_boot)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -116,7 +116,7 @@ static int sifive_u_timer_init(u32 hartid, bool cold_boot)
|
||||
return rc;
|
||||
}
|
||||
|
||||
return clint_warm_timer_init(hartid);
|
||||
return clint_warm_timer_init();
|
||||
}
|
||||
|
||||
static int sifive_u_system_down(u32 type)
|
||||
|
Reference in New Issue
Block a user