Skip to content
Commit 535fc38f authored by Wolfgang Reißnegger's avatar Wolfgang Reißnegger Committed by Anas Nashif
Browse files

riscv: Don't reschedule on back-to-back interrupts



In some cases the 'reschedule' code path is executed when the current
thread is the same as the next thread in the ready Q. If this happens,
the swap_return_value of the thread is ifalsely being reset to -EAGAIN.

This commit prevents the rescheduling code to run if the current thread
is the same as the thread in the ready Q.

Signed-off-by: default avatarWolfgang Reißnegger <gnagflow@fb.com>
parent 164029b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment