diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-22 12:17:03 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 06:09:26 +0300 |
commit | 9895d446ae947c2c3d060808bcb66870afaeb659 (patch) | |
tree | a548ceec34b355e59679bc379a06633d0341378a /platform/sifive | |
parent | 74fd2e5bb217278fcb2c0020038ea5f19bd5d22f (diff) | |
download | opensbi-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 'platform/sifive')
-rw-r--r-- | platform/sifive/fu540/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index c9bdf41..266a191 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -158,7 +158,7 @@ static int fu540_ipi_init(bool cold_boot) return clint_warm_ipi_init(); } -static int fu540_timer_init(u32 hartid, bool cold_boot) +static int fu540_timer_init(bool cold_boot) { int rc; @@ -169,7 +169,7 @@ static int fu540_timer_init(u32 hartid, bool cold_boot) return rc; } - return clint_warm_timer_init(hartid); + return clint_warm_timer_init(); } static int fu540_system_down(u32 type) |