diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-20 14:21:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-23 11:00:28 +0100 |
commit | ff20bc981654ec896ca2b7830962079b2e20c29e (patch) | |
tree | 6c3ba2266501cd5c1e9e0e1cd311ff74b04c3d9b /cpukit/include/rtems/score/chainimpl.h | |
parent | score: Add SMP scheduler make/clean sticky (diff) | |
download | rtems-ff20bc981654ec896ca2b7830962079b2e20c29e.tar.bz2 |
score: Rework idle handling in SMP schedulers
This patch fixes an issue with the idle thread handling in the SMP
scheduler framework used for the MrsP locking protocol. The approach to
use a simple chain of unused idle threads is broken for schedulers which
support thread to processor affinity. The reason is that the thread to
processor affinity introduces another ordering indicator which may under
certain conditions lead to a reordering of idle threads in the scheduled
chain. This reordering is not propagated to the chain of unused idle
threads. This could lead to use an idle thread for a sticky scheduler
node which is already in use. This locks up the system in infinite
loops in the thread context switch procedure.
To fix this, the SMP scheduler implementations must now provide
callbacks to get and release an unused idle thread.
Update #4531.
Diffstat (limited to 'cpukit/include/rtems/score/chainimpl.h')
0 files changed, 0 insertions, 0 deletions