summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2023-05-09 13:08:33 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-11 00:42:46 +0000
commit3d6f339994bd5e9188ec22e073598f6aa811de6b (patch)
tree9996aae6ec891e55ee9757813df966d3f50bc69d /common
parent5148f70c2592e08ff292e4b7da48d82d9e8b7724 (diff)
downloadchrome-ec-3d6f339994bd5e9188ec22e073598f6aa811de6b.tar.gz
safe_mode: Remove schedule_system_safe_mode_timeout
Zephyr and CrOS EC can use the same method for scheduling the safe mode timeout, so there's no need to have an overridden task. BUG=None TEST=Safe mode starts and timesout on skyrim Change-Id: I57b296223ec86cf47110a00f3f021e8a8a30ead3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4519103 Tested-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Rob Barnes <robbarnes@google.com> Auto-Submit: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'common')
-rw-r--r--common/system_safe_mode.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/common/system_safe_mode.c b/common/system_safe_mode.c
index 38b7991e12..b496bd4475 100644
--- a/common/system_safe_mode.c
+++ b/common/system_safe_mode.c
@@ -86,13 +86,6 @@ void handle_system_safe_mode_timeout(void)
}
DECLARE_DEFERRED(handle_system_safe_mode_timeout);
-__overridable int schedule_system_safe_mode_timeout(void)
-{
- hook_call_deferred(&handle_system_safe_mode_timeout_data,
- CONFIG_SYSTEM_SAFE_MODE_TIMEOUT_MSEC * MSEC);
- return EC_SUCCESS;
-}
-
bool system_is_in_safe_mode(void)
{
return !!in_safe_mode;
@@ -163,7 +156,8 @@ int start_system_safe_mode(void)
disable_non_safe_mode_critical_tasks();
- schedule_system_safe_mode_timeout();
+ hook_call_deferred(&handle_system_safe_mode_timeout_data,
+ CONFIG_SYSTEM_SAFE_MODE_TIMEOUT_MSEC * MSEC);
/*
* Schedule a deferred function to run immediately