Skip to content

Commit

Permalink
power: Fix unbalanced scheduler lock
Browse files Browse the repository at this point in the history
Commit 58a0ba6 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>
  • Loading branch information
Flavio Ceolin authored and nashif committed Mar 31, 2021
1 parent a43f3ba commit 9817058
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/power/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9817058

Please sign in to comment.