mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
pm: fix pm_wakelock_uninit api block, wd api need irq not disabled
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
parent
a005f4bff1
commit
264252497c
1 changed files with 1 additions and 1 deletions
|
@ -313,10 +313,10 @@ void pm_wakelock_uninit(FAR struct pm_wakelock_s *wakelock)
|
|||
}
|
||||
|
||||
wakelock->count = 0;
|
||||
wd_cancel(wdog);
|
||||
pm_wakelock_stats_rm(wakelock);
|
||||
|
||||
spin_unlock_irqrestore(&pdom->lock, flags);
|
||||
wd_cancel(wdog);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in a new issue