core/platform: Actually disable fast-reboot on P8
There was an attempt. It was not successful.
Fixes: ("Disable fast-reset for POWER8")
Cc:
@@ -54,12 +54,14 @@ static int64_t opal_cec_reboot(void)
opal_quiesce(QUIESCE_HOLD, -1);
- if (proc_gen == proc_gen_p8 && nvram_query_eq_safe("fast-reset","1")) {
+ if (proc_gen == proc_gen_p8) {
/*
* Bugs in P8 mean fast reboot isn't 100% reliable when cores
* are busy, so only attempt if explicitly *enabled*.
*/
+ if (nvram_query_eq_safe("fast-reset", "1"))
fast_reboot();
+
} else if (!nvram_query_eq_safe("fast-reset", "0")) {
/* Try fast-reset unless explicitly disabled */
fast_reboot();
