diff options
Diffstat (limited to 'common/ap_hang_detect.c')
-rw-r--r-- | common/ap_hang_detect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/ap_hang_detect.c b/common/ap_hang_detect.c index f19f0b7e60..502dbd620c 100644 --- a/common/ap_hang_detect.c +++ b/common/ap_hang_detect.c @@ -177,6 +177,10 @@ static int hang_detect_host_command(struct host_cmd_handler_args *args) return EC_RES_SUCCESS; } + /* If hang detect transitioning to disabled, stop timers */ + if (hdparams.flags && !p->flags) + hang_detect_stop("ap flags=0"); + /* Save new params */ hdparams = *p; CPRINTF("[%T hang detect flags=0x%x, event=%d ms, reboot=%d ms]\n", |