diff options
Diffstat (limited to 'power/mt8192.c')
-rw-r--r-- | power/mt8192.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/power/mt8192.c b/power/mt8192.c index 3cb6e164d8..fc99bce5e0 100644 --- a/power/mt8192.c +++ b/power/mt8192.c @@ -505,7 +505,8 @@ static void power_button_changed(void) DECLARE_HOOK(HOOK_POWER_BUTTON_CHANGE, power_button_changed, HOOK_PRIO_DEFAULT); #ifdef CONFIG_POWER_TRACK_HOST_SLEEP_STATE -static void suspend_hang_detected(void) +__overridable void power_chipset_handle_sleep_hang( + enum sleep_hang_type hang_type) { CPRINTS("Warning: Detected sleep hang! Waking host up!"); host_set_single_event(EC_HOST_EVENT_HANG_DETECT); @@ -524,7 +525,7 @@ __override void power_chipset_handle_host_sleep_event( * notification needs to be sent to listeners. */ sleep_set_notify(SLEEP_NOTIFY_SUSPEND); - sleep_start_suspend(ctx, suspend_hang_detected); + sleep_start_suspend(ctx); } else if (state == HOST_SLEEP_EVENT_S3_RESUME) { /* |