lib: utils: Remove redundant parameters from PLIC init functions

The "target_hart" and "hart_count" parameters of PLIC cold and
warm init functions are only used for sanity checks and not
required in PLIC initialization.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
Anup Patel
2020-05-12 10:14:43 +05:30
committed by Anup Patel
parent 89ba63493c
commit 73d6ef3b29
10 changed files with 22 additions and 48 deletions

View File

@@ -59,13 +59,12 @@ static int k210_irqchip_init(bool cold_boot)
if (cold_boot) {
rc = plic_cold_irqchip_init(K210_PLIC_BASE_ADDR,
K210_PLIC_NUM_SOURCES,
K210_HART_COUNT);
K210_PLIC_NUM_SOURCES);
if (rc)
return rc;
}
return plic_warm_irqchip_init(hartid, hartid * 2, hartid * 2 + 1);
return plic_warm_irqchip_init(hartid * 2, hartid * 2 + 1);
}
static int k210_ipi_init(bool cold_boot)