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:
buxiasen 2024-08-27 14:53:46 +08:00 committed by Xiang Xiao
parent a005f4bff1
commit 264252497c
1 changed files with 1 additions and 1 deletions

View File

@ -313,10 +313,10 @@ void pm_wakelock_uninit(FAR struct pm_wakelock_s *wakelock)
} }
wakelock->count = 0; wakelock->count = 0;
wd_cancel(wdog);
pm_wakelock_stats_rm(wakelock); pm_wakelock_stats_rm(wakelock);
spin_unlock_irqrestore(&pdom->lock, flags); spin_unlock_irqrestore(&pdom->lock, flags);
wd_cancel(wdog);
} }
/**************************************************************************** /****************************************************************************