diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-23 08:13:29 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 08:39:26 +0530 |
commit | 025d0ae994e5663e8c2ca0e16c42e814abac027d (patch) | |
tree | e8bfe27e49dda65db35e213fd00d7fb994bb451f | |
parent | 36394d2f2429c48d1db4e26ad25f9541c8c1027f (diff) |
include: Rename ipi_inject() to ipi_send() for sbi_platform
For better naming, we rename ipi_inject() to ipi_send() in
struct sbi_platform. We also replace term "inject" with
"send" in all related places.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
-rw-r--r-- | include/sbi/sbi_platform.h | 14 | ||||
-rw-r--r-- | lib/sbi_hart.c | 2 | ||||
-rw-r--r-- | lib/sbi_ipi.c | 2 | ||||
-rw-r--r-- | platform/common/include/plat/sys/clint.h | 2 | ||||
-rw-r--r-- | platform/common/sys/clint.c | 2 | ||||
-rw-r--r-- | platform/kendryte/k210/platform.c | 2 | ||||
-rw-r--r-- | platform/qemu/sifive_u/platform.c | 2 | ||||
-rw-r--r-- | platform/qemu/virt/platform.c | 2 | ||||
-rw-r--r-- | platform/sifive/fu540/platform.c | 2 |
9 files changed, 15 insertions, 15 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index e761571..4c39418 100644 --- a/include/sbi/sbi_platform.h +++ b/include/sbi/sbi_platform.h @@ -84,8 +84,8 @@ struct sbi_platform { /** Initialize the platform interrupt controller for current HART */ int (*irqchip_init)(bool cold_boot); - /** Inject IPI to a target HART */ - void (*ipi_inject)(u32 target_hart); + /** Send IPI to a target HART */ + void (*ipi_send)(u32 target_hart); /** Wait for target HART to acknowledge IPI */ void (*ipi_sync)(u32 target_hart); /** Clear IPI for a target HART */ @@ -321,16 +321,16 @@ static inline int sbi_platform_irqchip_init(struct sbi_platform *plat, } /** - * Inject IPI to a target HART + * Send IPI to a target HART * * @param plat pointer to struct sbi_platform * @param target_hart HART ID of IPI target */ -static inline void sbi_platform_ipi_inject(struct sbi_platform *plat, - u32 target_hart) +static inline void sbi_platform_ipi_send(struct sbi_platform *plat, + u32 target_hart) { - if (plat && plat->ipi_inject) - plat->ipi_inject(target_hart); + if (plat && plat->ipi_send) + plat->ipi_send(target_hart); } /** diff --git a/lib/sbi_hart.c b/lib/sbi_hart.c index 68e492c..dfa474c 100644 --- a/lib/sbi_hart.c +++ b/lib/sbi_hart.c @@ -331,7 +331,7 @@ void sbi_hart_wake_coldboot_harts(struct sbi_scratch *scratch, u32 hartid) /* send an IPI to every other hart */ spin_lock(&coldboot_wait_bitmap_lock); if ((i != hartid) && (coldboot_wait_bitmap & (1UL << i))) - sbi_platform_ipi_inject(plat, i); + sbi_platform_ipi_send(plat, i); spin_unlock(&coldboot_wait_bitmap_lock); } } diff --git a/lib/sbi_ipi.c b/lib/sbi_ipi.c index 4ff02c6..55896b2 100644 --- a/lib/sbi_ipi.c +++ b/lib/sbi_ipi.c @@ -35,7 +35,7 @@ int sbi_ipi_send_many(struct sbi_scratch *scratch, oth = sbi_hart_id_to_scratch(scratch, i); atomic_raw_set_bit(event, &oth->ipi_type); mb(); - sbi_platform_ipi_inject(plat, i); + sbi_platform_ipi_send(plat, i); if (event != SBI_IPI_EVENT_SOFT) sbi_platform_ipi_sync(plat, i); } diff --git a/platform/common/include/plat/sys/clint.h b/platform/common/include/plat/sys/clint.h index 8c67d94..7da8aad 100644 --- a/platform/common/include/plat/sys/clint.h +++ b/platform/common/include/plat/sys/clint.h @@ -12,7 +12,7 @@ #include <sbi/sbi_types.h> -void clint_ipi_inject(u32 target_hart); +void clint_ipi_send(u32 target_hart); void clint_ipi_sync(u32 target_hart); diff --git a/platform/common/sys/clint.c b/platform/common/sys/clint.c index 0f53076..a518996 100644 --- a/platform/common/sys/clint.c +++ b/platform/common/sys/clint.c @@ -16,7 +16,7 @@ static u32 clint_ipi_hart_count; static volatile void *clint_ipi_base; static volatile u32 *clint_ipi; -void clint_ipi_inject(u32 target_hart) +void clint_ipi_send(u32 target_hart) { if (clint_ipi_hart_count <= target_hart) return; diff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c index acb453d..5c513d4 100644 --- a/platform/kendryte/k210/platform.c +++ b/platform/kendryte/k210/platform.c @@ -114,7 +114,7 @@ struct sbi_platform platform = { .irqchip_init = k210_irqchip_init, .ipi_init = k210_ipi_init, - .ipi_inject = clint_ipi_inject, + .ipi_send = clint_ipi_send, .ipi_sync = clint_ipi_sync, .ipi_clear = clint_ipi_clear, diff --git a/platform/qemu/sifive_u/platform.c b/platform/qemu/sifive_u/platform.c index e93554f..9f3da1c 100644 --- a/platform/qemu/sifive_u/platform.c +++ b/platform/qemu/sifive_u/platform.c @@ -138,7 +138,7 @@ struct sbi_platform platform = { .console_getc = sifive_uart_getc, .console_init = sifive_u_console_init, .irqchip_init = sifive_u_irqchip_init, - .ipi_inject = clint_ipi_inject, + .ipi_send = clint_ipi_send, .ipi_sync = clint_ipi_sync, .ipi_clear = clint_ipi_clear, .ipi_init = sifive_u_ipi_init, diff --git a/platform/qemu/virt/platform.c b/platform/qemu/virt/platform.c index c55b5fc..63f4747 100644 --- a/platform/qemu/virt/platform.c +++ b/platform/qemu/virt/platform.c @@ -139,7 +139,7 @@ struct sbi_platform platform = { .console_getc = uart8250_getc, .console_init = virt_console_init, .irqchip_init = virt_irqchip_init, - .ipi_inject = clint_ipi_inject, + .ipi_send = clint_ipi_send, .ipi_sync = clint_ipi_sync, .ipi_clear = clint_ipi_clear, .ipi_init = virt_ipi_init, diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index 266a191..28b86ec 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -191,7 +191,7 @@ struct sbi_platform platform = { .console_getc = sifive_uart_getc, .console_init = fu540_console_init, .irqchip_init = fu540_irqchip_init, - .ipi_inject = clint_ipi_inject, + .ipi_send = clint_ipi_send, .ipi_sync = clint_ipi_sync, .ipi_clear = clint_ipi_clear, .ipi_init = fu540_ipi_init, |