mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00:00
timers/watchdog: Ensure it's the idle domain before keepalive
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
335fc3dde2
commit
6642741612
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue