Skip to content
Commit 2cd49ca0 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

pm: Fix possible assertion when resuming



pm_system_resume() can be called from the idle thread with
interruptions unmasked. In this situation, _current_cpu will call
z_smp_cpu_mobile() that will return true and cause an assert.

In this function we don't need to check if the current context can be
preempted, we just need the information about which cpu is executing
it.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent d813e9b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment