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
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue