diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-22 14:47:03 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 08:39:26 +0530 |
commit | 9895d446ae947c2c3d060808bcb66870afaeb659 (patch) | |
tree | a548ceec34b355e59679bc379a06633d0341378a /include/sbi/sbi_timer.h | |
parent | 74fd2e5bb217278fcb2c0020038ea5f19bd5d22f (diff) |
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>
Diffstat (limited to 'include/sbi/sbi_timer.h')
-rw-r--r-- | include/sbi/sbi_timer.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/sbi/sbi_timer.h b/include/sbi/sbi_timer.h index 601c27c..37e1c79 100644 --- a/include/sbi/sbi_timer.h +++ b/include/sbi/sbi_timer.h @@ -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 |