Changeset ff20bc9 in rtems

Timestamp:
10/20/21 12:21:20 (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
6d20f0c5
Parents:
3d6ebde1
git-author:
Sebastian Huber <sebastian.huber@…> (10/20/21 12:21:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/23/21 10:00:28)
Message:

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.

(No files)

Note: See TracChangeset for help on using the changeset viewer.