summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerdefaultmakecleansticky.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Add SMP scheduler make/clean stickySebastian Huber2021-11-231-0/+52
This patch fixes the following broken behaviour: While a thread is scheduled on a helping scheduler, while it does not own a MrsP semaphore, if it obtains a MrsP semaphore, then no scheduler node using an idle thread and the ceiling priority of the semaphore is unblocked for the home scheduler. This could lead to priority inversion issues and is not in line with the MrsP protocol. Introduce two new scheduler operations which are only enabled if RTEMS_SMP is defined. The operations are used to make the scheduler node of the home scheduler sticky and to clean the sticky property. This helps to keep the sticky handing out of the frequently used priority update operation. Close #4532.