diff options
author | Tom Rini <trini@konsulko.com> | 2022-09-26 11:27:30 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-26 11:27:30 -0400 |
commit | ffa2c88bcf8618b6d6fb71f5263beede9a179b20 (patch) | |
tree | 750fa5677f89e5b7b48d1510cba9978a2b13b15e /arch/riscv/lib/smp.c | |
parent | 9114b7cee817789ad59e0fb6d5cd57f50668b4e1 (diff) | |
parent | 3c1ec13317292933fd01d9c60aae3ff1d5bc171e (diff) |
Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-riscv into next
Diffstat (limited to 'arch/riscv/lib/smp.c')
-rw-r--r-- | arch/riscv/lib/smp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/riscv/lib/smp.c b/arch/riscv/lib/smp.c index ba992100adf..c0f65af1916 100644 --- a/arch/riscv/lib/smp.c +++ b/arch/riscv/lib/smp.c @@ -45,11 +45,13 @@ static int send_ipi_many(struct ipi_data *ipi, int wait) continue; } -#ifndef CONFIG_XIP +#if !CONFIG_IS_ENABLED(XIP) +#ifdef CONFIG_AVAILABLE_HARTS /* skip if hart is not available */ if (!(gd->arch.available_harts & (1 << reg))) continue; #endif +#endif gd->arch.ipi[reg].addr = ipi->addr; gd->arch.ipi[reg].arg0 = ipi->arg0; |