From 264252497cf6b96fef7bacd7ac4532df533c55a4 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Tue, 27 Aug 2024 14:53:46 +0800 Subject: [PATCH] pm: fix pm_wakelock_uninit api block, wd api need irq not disabled Signed-off-by: buxiasen --- drivers/power/pm/pm_activity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/pm/pm_activity.c b/drivers/power/pm/pm_activity.c index aaa92ebfad..18081a0327 100644 --- a/drivers/power/pm/pm_activity.c +++ b/drivers/power/pm/pm_activity.c @@ -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); } /****************************************************************************