Skip to content
Commit 74ff1092 authored by Mazen NEIFER's avatar Mazen NEIFER Committed by Andrew Boie
Browse files

Xtensa port: Prevent preemption of locked threads.



When an IRQ is serviced, the ISR dispatcher will check for any new thread in
the ready queue and switch to it. However, if the current thread is marked as
non preemptable due to _kernel.current->base.preempt > _NON_PREEMPT_THRESHOLD
then we should not switch to another one.

Change-Id: Icdc08105cc6433da479bb95265710462a0f37c0b
Signed-off-by: default avatarMazen NEIFER <mazen@nestwave.com>
parent 53f66d0b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment