diff options
| author | Anup Patel <[email protected]> | 2018-12-26 18:27:35 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2018-12-27 09:35:09 +0530 |
| commit | e34aa8a6719dd6c225e576e0617d05735776af6f (patch) | |
| tree | 59b041b592b1f139cb7850a522813f392a28c70b /lib | |
| parent | 7b59571758a5dec75c89928a60d982b29629cee6 (diff) | |
lib: Simplify sbi_platform irqchip_init() hooks
Instead of having separate irqchip_init() hooks for cold and
warm boot, this patch updates struct sbi_platform to have just
one irqchip_init() hook. The type of boot (cold or warm) is now
a boolean flag parameter for the updated irqchip_init() hook.
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi_init.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/sbi_init.c b/lib/sbi_init.c index 1f5d923e..448102e5 100644 --- a/lib/sbi_init.c +++ b/lib/sbi_init.c @@ -46,11 +46,7 @@ static void __attribute__((noreturn)) init_coldboot(struct sbi_scratch *scratch, if (rc) sbi_hart_hang(); - rc = sbi_platform_cold_irqchip_init(plat); - if (rc) - sbi_hart_hang(); - - rc = sbi_platform_warm_irqchip_init(plat, hartid); + rc = sbi_platform_irqchip_init(plat, hartid, TRUE); if (rc) sbi_hart_hang(); @@ -125,7 +121,7 @@ static void __attribute__((noreturn)) init_warmboot(struct sbi_scratch *scratch, if (rc) sbi_hart_hang(); - rc = sbi_platform_warm_irqchip_init(plat, hartid); + rc = sbi_platform_irqchip_init(plat, hartid, FALSE); if (rc) sbi_hart_hang(); |
