mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +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:
@@ -16,14 +16,12 @@ struct sbi_scratch;
|
||||
|
||||
u64 sbi_timer_value(struct sbi_scratch *scratch);
|
||||
|
||||
void sbi_timer_event_stop(struct sbi_scratch *scratch, u32 hartid);
|
||||
void sbi_timer_event_stop(struct sbi_scratch *scratch);
|
||||
|
||||
void sbi_timer_event_start(struct sbi_scratch *scratch, u32 hartid,
|
||||
u64 next_event);
|
||||
void sbi_timer_event_start(struct sbi_scratch *scratch, u64 next_event);
|
||||
|
||||
void sbi_timer_process(struct sbi_scratch *scratch, u32 hartid);
|
||||
void sbi_timer_process(struct sbi_scratch *scratch);
|
||||
|
||||
int sbi_timer_init(struct sbi_scratch *scratch, u32 hartid,
|
||||
bool cold_boot);
|
||||
int sbi_timer_init(struct sbi_scratch *scratch, bool cold_boot);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user