summaryrefslogtreecommitdiff
path: root/platform/kendryte/k210
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 /platform/kendryte/k210
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 'platform/kendryte/k210')
-rw-r--r--platform/kendryte/k210/platform.c4
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)