Skip to content

Commit

Permalink
Actually add /ibm,opal/fast-reboot property
Browse files Browse the repository at this point in the history
[ Upstream commit aeb3669 ]

I missed a hunk when merging :(

Reported-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Fixes: 7c8e1c6
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Oct 31, 2018
1 parent 64f2448 commit 0cc0d4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/fast-reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cc0d4f

Please sign in to comment.