diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2023-05-13 22:33:14 +1000 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2023-06-06 13:32:12 -0500 |
commit | 25e28eae9acb0275b7c3a7f3377327b30aae6b5c (patch) | |
tree | e4dde23c969ab5186046ccd3b958ccb9c040c50b /core | |
parent | d40064f479e6a94c2ff7714046d40818b4d993f0 (diff) | |
download | skiboot-25e28eae9acb0275b7c3a7f3377327b30aae6b5c.zip skiboot-25e28eae9acb0275b7c3a7f3377327b30aae6b5c.tar.gz skiboot-25e28eae9acb0275b7c3a7f3377327b30aae6b5c.tar.bz2 |
core/init: Move opal_mpipl_init earlier
There doesn't seem to be any reason to call opal_mpipl_init so late,
after sleep, traps, interrupts, machine checks, watchdog, etc., are
all disabled. Move it earlier.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/init.c b/core/init.c index 005ecf3..e832a00 100644 --- a/core/init.c +++ b/core/init.c @@ -574,6 +574,8 @@ void __noreturn load_and_boot_kernel(bool is_reboot) if (!occ_sensors_init()) dts_sensor_create_nodes(sensor_node); + opal_mpipl_init(); + } else { /* fdt will be rebuilt */ free(fdt); @@ -638,10 +640,6 @@ void __noreturn load_and_boot_kernel(bool is_reboot) patch_traps(false); cpu_set_hile_mode(false); /* Clear HILE on all CPUs */ - /* init MPIPL */ - if (!is_reboot) - opal_mpipl_init(); - checksum_romem(); debug_descriptor.state_flags |= OPAL_BOOT_COMPLETE; |