power: Fix unbalanced scheduler lock

Commit 58a0ba6dbb removed the call to k_sched_unlock from
pm_system_resume() consequently the scheduler lock in
pm_power_state_force() was left unbalanced. Just fixing it.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-03-30 15:11:22 -07:00 committed by Anas Nashif
parent a43f3bade8
commit 98170586e1

View file

@ -157,6 +157,7 @@ void pm_power_state_force(struct pm_state_info info)
pm_debug_stop_timer();
pm_system_resume();
k_sched_unlock();
}
#if CONFIG_PM_DEVICE