Skip to content
Commit ddee1ab4 authored by Andy Ross's avatar Andy Ross Committed by Fabio Baltieri
Browse files

kernel/sched: Correct locking in essential thread panic



Calling a (handled/ignored) panic with the scheduler lock held
produces spinlock errors in some circumstances, depending on whether
or not the swap gets reached before another context switch.  Release
the lock around the call, we don't touch any scheduler state on the
path to z_swap(), so this is safe.

Signed-off-by: default avatarAndy Ross <andyross@google.com>
parent 1903a8f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment