Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
unify critical_section and nxsem with pm_lock/pm_unlock Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
In some scenarios, We need to update state information internally. Instead of use idle-task to drive the checkstate and change state function. Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>