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>
This commit is contained in:
Anup Patel
2019-01-22 14:47:03 +05:30
committed by Anup Patel
parent 74fd2e5bb2
commit 9895d446ae
12 changed files with 44 additions and 47 deletions

View File

@@ -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)