summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_timer.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-01-22 12:17:03 +0300
committerAnup Patel <anup@brainfault.org>2019-01-23 06:09:26 +0300
commit9895d446ae947c2c3d060808bcb66870afaeb659 (patch)
treea548ceec34b355e59679bc379a06633d0341378a /include/sbi/sbi_timer.h
parent74fd2e5bb217278fcb2c0020038ea5f19bd5d22f (diff)
downloadopensbi-9895d446ae947c2c3d060808bcb66870afaeb659.tar.xz
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.h10
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