From 78c667b6fc07d2ea783fbd18f43a3f8191de6164 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Fri, 1 Sep 2023 17:41:07 +0530 Subject: lib: sbi: Prefer hartindex over hartid in IPI framework Let us prefer hartindex over hartid in IPI framework which in-turn forces IPI users to also prefer hartindex. Signed-off-by: Anup Patel --- include/sbi/sbi_ipi.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/sbi/sbi_ipi.h b/include/sbi/sbi_ipi.h index 6b5e260b..d3962334 100644 --- a/include/sbi/sbi_ipi.h +++ b/include/sbi/sbi_ipi.h @@ -23,11 +23,11 @@ struct sbi_ipi_device { /** Name of the IPI device */ char name[32]; - /** Send IPI to a target HART */ - void (*ipi_send)(u32 target_hart); + /** Send IPI to a target HART index */ + void (*ipi_send)(u32 hart_index); - /** Clear IPI for a target HART */ - void (*ipi_clear)(u32 target_hart); + /** Clear IPI for a target HART index */ + void (*ipi_clear)(u32 hart_index); }; enum sbi_ipi_update_type { @@ -54,7 +54,7 @@ struct sbi_ipi_event_ops { */ int (* update)(struct sbi_scratch *scratch, struct sbi_scratch *remote_scratch, - u32 remote_hartid, void *data); + u32 remote_hartindex, void *data); /** * Sync callback to wait for remote HART @@ -85,9 +85,9 @@ int sbi_ipi_send_halt(ulong hmask, ulong hbase); void sbi_ipi_process(void); -int sbi_ipi_raw_send(u32 target_hart); +int sbi_ipi_raw_send(u32 hartindex); -void sbi_ipi_raw_clear(u32 target_hart); +void sbi_ipi_raw_clear(u32 hartindex); const struct sbi_ipi_device *sbi_ipi_get_device(void); -- cgit v1.3.1