Skip to content
Commit 5183fc56 authored by Mathieu Choplain's avatar Mathieu Choplain Committed by Anas Nashif
Browse files

kernel: assert no spinlock is held on swap when !USE_SWITCH



The do_swap() routine used when CONFIG_USE_SWITCH=y asserts that caller
thread does not hold any spinlock when CONFIG_SPIN_VALIDATE is enabled.
However, there is no similar check in place when CONFIG_USE_SWITCH=n.

Copy this assertion in the USE_SWITCH=n implementation of z_swap_irqlock().

Signed-off-by: default avatarMathieu Choplain <mathieu.choplain@st.com>
parent 9c9dc0df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment