mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
timers/watchdog: Ensure it's the idle domain before keepalive
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
335fc3dde2
commit
6642741612
@@ -174,7 +174,8 @@ static void watchdog_automonitor_idle(FAR struct pm_callback_s *cb,
|
||||
FAR struct watchdog_upperhalf_s *upper = (FAR void *)cb;
|
||||
FAR struct watchdog_lowerhalf_s *lower = upper->lower;
|
||||
|
||||
if (upper->monitor)
|
||||
if (domain == PM_IDLE_DOMAIN &&
|
||||
pmstate != PM_RESTORE && upper->monitor)
|
||||
{
|
||||
lower->ops->keepalive(lower);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user