diff options
| author | Anup Patel <[email protected]> | 2019-01-22 13:52:25 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2019-01-23 08:39:26 +0530 |
| commit | fea9e2b5f37446845bec3cc9e2edd6f8308c2332 (patch) | |
| tree | e50c40a69a229f6d8f2eec0de3b48ded22179114 /lib | |
| parent | f293d21863c5b23dcb4b151c2fd879696830e0bc (diff) | |
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 <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi_init.c | 8 | ||||
| -rw-r--r-- | lib/sbi_system.c | 10 |
2 files changed, 8 insertions, 10 deletions
diff --git a/lib/sbi_init.c b/lib/sbi_init.c index 35a543e0..7ae5f8bc 100644 --- a/lib/sbi_init.c +++ b/lib/sbi_init.c @@ -33,7 +33,7 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) char str[64]; struct sbi_platform *plat = sbi_platform_ptr(scratch); - rc = sbi_system_early_init(scratch, hartid, TRUE); + rc = sbi_system_early_init(scratch, TRUE); if (rc) sbi_hart_hang(); @@ -57,7 +57,7 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) if (rc) sbi_hart_hang(); - rc = sbi_system_final_init(scratch, hartid, TRUE); + rc = sbi_system_final_init(scratch, TRUE); if (rc) sbi_hart_hang(); @@ -103,7 +103,7 @@ static void __noreturn init_warmboot(struct sbi_scratch *scratch, u32 hartid) if (sbi_platform_hart_disabled(plat, hartid)) sbi_hart_hang(); - rc = sbi_system_early_init(scratch, hartid, FALSE); + rc = sbi_system_early_init(scratch, FALSE); if (rc) sbi_hart_hang(); @@ -123,7 +123,7 @@ static void __noreturn init_warmboot(struct sbi_scratch *scratch, u32 hartid) if (rc) sbi_hart_hang(); - rc = sbi_system_final_init(scratch, hartid, FALSE); + rc = sbi_system_final_init(scratch, FALSE); if (rc) sbi_hart_hang(); diff --git a/lib/sbi_system.c b/lib/sbi_system.c index f543cef2..738ff456 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, |
