commit | 2cd49ca0fe9ca727a72ec6d7adebda4870f0f077 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Mon Jun 13 22:34:48 2022 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Jun 16 19:53:20 2022 -0400 |
tree | 1bd5629c6f9ff3acb08521d8ab46f35f8f8d2bbd | |
parent | d813e9b39f1622eb3d5da7dc6ae886815eb2fa07 [diff] |
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: Flavio Ceolin <flavio.ceolin@intel.com>