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/utils/ipi | |
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/utils/ipi')
-rw-r--r-- | lib/utils/ipi/fdt_ipi.c | 20 | ||||
-rw-r--r-- | lib/utils/ipi/fdt_ipi_clint.c | 2 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/utils/ipi/fdt_ipi.c b/lib/utils/ipi/fdt_ipi.c index 6562469..efca37e 100644 --- a/lib/utils/ipi/fdt_ipi.c +++ b/lib/utils/ipi/fdt_ipi.c @@ -17,35 +17,15 @@ static struct fdt_ipi *ipi_drivers[] = { &fdt_ipi_clint }; -static void dummy_send(u32 target_hart) -{ -} - -static void dummy_clear(u32 target_hart) -{ -} - static struct fdt_ipi dummy = { .match_table = NULL, .cold_init = NULL, .warm_init = NULL, .exit = NULL, - .send = dummy_send, - .clear = dummy_clear }; static struct fdt_ipi *current_driver = &dummy; -void fdt_ipi_send(u32 target_hart) -{ - current_driver->send(target_hart); -} - -void fdt_ipi_clear(u32 target_hart) -{ - current_driver->clear(target_hart); -} - void fdt_ipi_exit(void) { if (current_driver->exit) diff --git a/lib/utils/ipi/fdt_ipi_clint.c b/lib/utils/ipi/fdt_ipi_clint.c index e799fd7..529f978 100644 --- a/lib/utils/ipi/fdt_ipi_clint.c +++ b/lib/utils/ipi/fdt_ipi_clint.c @@ -45,6 +45,4 @@ struct fdt_ipi fdt_ipi_clint = { .cold_init = ipi_clint_cold_init, .warm_init = clint_warm_ipi_init, .exit = NULL, - .send = clint_ipi_send, - .clear = clint_ipi_clear, }; |