[Skiboot] [PATCH 12/18] fast-reboot: allow mambo fast reboot independent of CPU type
Nicholas Piggin
npiggin at gmail.com
Sun Nov 19 20:15:02 AEDT 2017
Don't tie mambo fast reboot to POWER8 CPU type.
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
core/fast-reboot.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/core/fast-reboot.c b/core/fast-reboot.c
index 72a4973a..62635e17 100644
--- a/core/fast-reboot.c
+++ b/core/fast-reboot.c
@@ -324,7 +324,7 @@ static int sreset_all_others(void)
return OPAL_UNSUPPORTED;
}
-static bool fast_reset_p8(void)
+static bool fast_reset(void)
{
struct cpu_thread *cpu;
bool ret;
@@ -400,7 +400,8 @@ void fast_reboot(void)
static int fast_reboot_count = 0;
bool success;
- if (proc_gen != proc_gen_p8) {
+ if (chip_quirk(QUIRK_MAMBO_CALLOUTS) ||
+ proc_gen != proc_gen_p8) {
prlog(PR_DEBUG,
"RESET: Fast reboot not available on this CPU\n");
return;
@@ -439,7 +440,7 @@ void fast_reboot(void)
fast_boot_release = false;
sync();
- success = fast_reset_p8();
+ success = fast_reset();
/* Unlock, at this point we go away */
unlock(&reset_lock);
--
2.15.0
More information about the Skiboot
mailing list