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

kernel: irq: update irq_lock() documentation regarding context switches



Upon context switch, the virtual "interrupt lock" acquired by irq_lock()
must not be "held". However, the current documentation for irq_lock() says
that it is perfectly valid to hold it (!), and that a suspended thread will
hold the "interrupt lock" upon being scheduled again (!!).

Update the documentation to remove the outdated section and indicate that
context switching while holding the interrupt lock is not allowed.

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