diff options
author | Anup Patel <anup.patel@wdc.com> | 2018-12-26 18:36:11 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2018-12-27 09:35:09 +0530 |
commit | c1b6200653c51642e544c66fab8bb320969b818e (patch) | |
tree | c4d17e29e7a979cd5a910b4910fcd75a5569f803 /include/sbi/sbi_ipi.h | |
parent | e34aa8a6719dd6c225e576e0617d05735776af6f (diff) |
lib: Simplify sbi_platform ipi_init() hooks
Instead of having separate ipi_init() hooks for cold and warm boot,
this patch updates struct sbi_platform to have just one ipi_init()
hook. The type of boot (cold or warm) is now a boolean flag parameter
for the updated ipi_init() hook.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_ipi.h')
-rw-r--r-- | include/sbi/sbi_ipi.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/sbi/sbi_ipi.h b/include/sbi/sbi_ipi.h index 4058194..d7c0576 100644 --- a/include/sbi/sbi_ipi.h +++ b/include/sbi/sbi_ipi.h @@ -26,8 +26,6 @@ void sbi_ipi_clear_smode(struct sbi_scratch *scratch, u32 hartid); void sbi_ipi_process(struct sbi_scratch *scratch, u32 hartid); -int sbi_ipi_warm_init(struct sbi_scratch *scratch, u32 hartid); - -int sbi_ipi_cold_init(struct sbi_scratch *scratch); +int sbi_ipi_init(struct sbi_scratch *scratch, u32 hartid, bool cold_boot); #endif |