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 /platform/kendryte | |
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 'platform/kendryte')
-rw-r--r-- | platform/kendryte/k210/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c index 55e8d90..0b944be 100644 --- a/platform/kendryte/k210/platform.c +++ b/platform/kendryte/k210/platform.c @@ -68,7 +68,7 @@ static int k210_ipi_init(bool cold_boot) return clint_warm_ipi_init(); } -static int k210_timer_init(u32 hartid, bool cold_boot) +static int k210_timer_init(bool cold_boot) { int rc; @@ -79,7 +79,7 @@ static int k210_timer_init(u32 hartid, bool cold_boot) return rc; } - return clint_warm_timer_init(hartid); + return clint_warm_timer_init(); } static int k210_system_reboot(u32 type) |