diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-22 12:03:41 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 06:09:26 +0300 |
commit | 74fd2e5bb217278fcb2c0020038ea5f19bd5d22f (patch) | |
tree | 8f1c27d00aaf3c017d3f970ca81e21770341a0cb /include | |
parent | 18ec89e46e3cf8011b30deded6ea8d77720bdb3c (diff) | |
download | opensbi-74fd2e5bb217278fcb2c0020038ea5f19bd5d22f.tar.xz |
lib: Remove hartid parameter from IRQCHIP callbacks
The hartid parameter in IRQCHIP callbacks of sbi_platform
is not required because current hartid can be determined
using sbi_current_hartid() API.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi/sbi_platform.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index 6642816..648b953 100644 --- a/include/sbi/sbi_platform.h +++ b/include/sbi/sbi_platform.h @@ -82,7 +82,7 @@ struct sbi_platform { int (*console_init)(void); /** Initialize the platform interrupt controller */ - int (*irqchip_init)(u32 hartid, bool cold_boot); + int (*irqchip_init)(bool cold_boot); /** Inject IPI to a target HART */ void (*ipi_inject)(u32 target_hart); @@ -308,16 +308,15 @@ static inline int sbi_platform_console_init(struct sbi_platform *plat) * Initialize the platform interrupt controller for given HART * * @param plat pointer to struct sbi_platform - * @param hartid HART ID * @param cold_boot whether cold boot (TRUE) or warm_boot (FALSE) * * @return 0 on success and negative error code on failure */ static inline int sbi_platform_irqchip_init(struct sbi_platform *plat, - u32 hartid, bool cold_boot) + bool cold_boot) { if (plat && plat->irqchip_init) - return plat->irqchip_init(hartid, cold_boot); + return plat->irqchip_init(cold_boot); return 0; } |