aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-09-18 04:54:12 -0500
committerStewart Smith <stewart@linux.ibm.com>2018-10-31 17:33:34 +1100
commit0cc0d4f8018be160af0cb5abbe196239d2a1a480 (patch)
treec239fa7558982d6a7ad561f52bec681863067988
parent64f24480050e50ba67582263b5b62ea156b8f4bd (diff)
downloadskiboot-0cc0d4f8018be160af0cb5abbe196239d2a1a480.zip
skiboot-0cc0d4f8018be160af0cb5abbe196239d2a1a480.tar.gz
skiboot-0cc0d4f8018be160af0cb5abbe196239d2a1a480.tar.bz2
Actually add /ibm,opal/fast-reboot property
[ Upstream commit aeb366970e0c48871dd2d880665c0d64961a524f ] I missed a hunk when merging :( Reported-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Fixes: 7c8e1c6f89f3aac77661cfcee75ab515bd053d75 Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--core/fast-reboot.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/fast-reboot.c b/core/fast-reboot.c
index 8686aca..d4ce204 100644
--- a/core/fast-reboot.c
+++ b/core/fast-reboot.c
@@ -71,6 +71,17 @@ void disable_fast_reboot(const char *reason)
fast_reboot_disabled = reason;
}
+void add_fast_reboot_dt_entries(void)
+{
+ dt_check_del_prop(opal_node, "fast-reboot");
+
+ if (fast_reboot_disabled) {
+ dt_add_property_string(opal_node, "fast-reboot", fast_reboot_disabled);
+ } else {
+ dt_add_property_string(opal_node, "fast-reboot", "okay");
+ }
+}
+
/*
* This is called by the reboot CPU after all other CPUs have been
* quiesced and stopped, to perform various sanity checks on firmware