mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +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:
@@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user