Changeset 834a86fe in rtems for cpukit/score

Timestamp:
11/15/21 09:20:30 (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
cd791039
Parents:
c69a70a
git-author:
Sebastian Huber <sebastian.huber@…> (11/15/21 09:20:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/23/21 10:00:28)
Message:

score: Restrict affinity for EDF SMP scheduler

The SMP EDF scheduler supports a one-to-one and one-to-all thread to
processor affinity. It accepted affinity sets which are a proper
subset of the online processor containing at least two processors owned by
the scheduler. In this case it used a one-to-one thread to processor
affinity. This leads to undefined behaviour if a processor is removed
since the higher level check in rtems_scheduler_remove_processor() does
not account for this implementation detail.

Restrict the affinity set accepted by the SMP EDF scheduler to

  1. all online processors, or
  1. exactly one processor owned by the scheduler.

Close #4545.

(No files)

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