diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-22 11:22:25 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 06:09:26 +0300 |
commit | fea9e2b5f37446845bec3cc9e2edd6f8308c2332 (patch) | |
tree | e50c40a69a229f6d8f2eec0de3b48ded22179114 /lib/sbi_system.c | |
parent | f293d21863c5b23dcb4b151c2fd879696830e0bc (diff) | |
download | opensbi-fea9e2b5f37446845bec3cc9e2edd6f8308c2332.tar.xz |
lib: Remove hartid paramter from early_init() and final_init() callbacks
We simplify early_init() and final_init() callbacks of sbi_platform
by removing "hartid" parameter.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi_system.c')
-rw-r--r-- | lib/sbi_system.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sbi_system.c b/lib/sbi_system.c index f543cef..738ff45 100644 --- a/lib/sbi_system.c +++ b/lib/sbi_system.c @@ -11,18 +11,16 @@ #include <sbi/sbi_platform.h> #include <sbi/sbi_system.h> -int sbi_system_early_init(struct sbi_scratch *scratch, u32 hartid, - bool cold_boot) +int sbi_system_early_init(struct sbi_scratch *scratch, bool cold_boot) { return sbi_platform_early_init(sbi_platform_ptr(scratch), - hartid, cold_boot); + cold_boot); } -int sbi_system_final_init(struct sbi_scratch *scratch, u32 hartid, - bool cold_boot) +int sbi_system_final_init(struct sbi_scratch *scratch, bool cold_boot) { return sbi_platform_final_init(sbi_platform_ptr(scratch), - hartid, cold_boot); + cold_boot); } void __attribute__((noreturn)) sbi_system_reboot(struct sbi_scratch *scratch, |