diff options
author | Anup Patel <anup.patel@wdc.com> | 2021-04-22 10:27:15 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-04-28 17:03:31 +0530 |
commit | dc39c7b630a607b96c25f8ea50f0bb1af619928a (patch) | |
tree | f0c1d9ae8c5a68cc38e4ffba772f50f43111e715 /lib/sbi/sbi_init.c | |
parent | 559a8f1d3be3210d4903c0db54c2d36e2f8d6ad4 (diff) |
lib: sbi: Simplify ipi platform operations
Instead of having ipi_send() and ipi_clear() callbacks in
platform operations, it will be much simpler for ipi driver
to directly register these operations as a device to sbi_ipi
implementation.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_init.c')
-rw-r--r-- | lib/sbi/sbi_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 4de2dfa..7380d01 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -178,8 +178,6 @@ static void wait_for_coldboot(struct sbi_scratch *scratch, u32 hartid) static void wake_coldboot_harts(struct sbi_scratch *scratch, u32 hartid) { - const struct sbi_platform *plat = sbi_platform_ptr(scratch); - /* Mark coldboot done */ __smp_store_release(&coldboot_done, 1); @@ -190,7 +188,7 @@ static void wake_coldboot_harts(struct sbi_scratch *scratch, u32 hartid) for (int i = 0; i <= sbi_scratch_last_hartid(); i++) { if ((i != hartid) && sbi_hartmask_test_hart(i, &coldboot_wait_hmask)) - sbi_platform_ipi_send(plat, i); + sbi_ipi_raw_send(i); } /* Release coldboot lock */ |