summaryrefslogtreecommitdiff
path: root/platform/kendryte
diff options
context:
space:
mode:
authorAnup patel <anup.patel@wdc.com>2019-01-22 11:50:59 +0300
committerAnup Patel <anup@brainfault.org>2019-01-23 06:09:26 +0300
commit18ec89e46e3cf8011b30deded6ea8d77720bdb3c (patch)
treee2fcd2f5fa1928a0f9b7d2b2c2dc8b42296d5d1e /platform/kendryte
parentfea9e2b5f37446845bec3cc9e2edd6f8308c2332 (diff)
downloadopensbi-18ec89e46e3cf8011b30deded6ea8d77720bdb3c.tar.xz
lib: Remove source_hart and hartid parameter from IPI callbacks
The source_hart and hartid parameter is really not required in IPI callbacks of sbi_platform because current hartid can always be obtained by calling 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c
index fd0b31a..4eb1d99 100644
--- a/platform/kendryte/k210/platform.c
+++ b/platform/kendryte/k210/platform.c
@@ -52,7 +52,7 @@ static int k210_irqchip_init(u32 hartid, bool cold_boot)
(2 * hartid + 1));
}
-static int k210_ipi_init(u32 hartid, bool cold_boot)
+static int k210_ipi_init(bool cold_boot)
{
int rc;
@@ -63,7 +63,7 @@ static int k210_ipi_init(u32 hartid, bool cold_boot)
return rc;
}
- return clint_warm_ipi_init(hartid);
+ return clint_warm_ipi_init();
}
static int k210_timer_init(u32 hartid, bool cold_boot)