[PATCH v1 0/3] Add pinning to priority SMP scheduler
Ryan Long
ryan.long at oarcorp.com
Wed Nov 17 15:33:50 UTC 2021
Hi,
For this patchset we
- Added the ability to pin/unpin a thread using affinity to the priority
SMP scheduler.
- Changed the state that was being checked in
_Scheduler_priority_affinity_SMP_Set_affinity() to be the thread's
scheduler's state. This was done because that is where the thread's
blocked status is actually recorded.
- Created the smpthreadpin02 test to test this new functionality.
Thanks,
Ryan
Ryan Long (3):
priorityaffinitysmp: Update block state check
Add pinning to priority SMP scheduler
smpthreadpin02: Adapt test from smpthreadpin01
cpukit/include/rtems/score/scheduler.h | 36 ++
.../rtems/score/schedulerpriorityaffinitysmp.h | 4 +-
cpukit/score/src/schedulerpinusingaffinity.c | 98 ++++
cpukit/score/src/schedulerpriorityaffinitysmp.c | 8 +-
spec/build/cpukit/objsmp.yml | 1 +
spec/build/testsuites/smptests/grp.yml | 2 +
spec/build/testsuites/smptests/smpthreadpin01.yml | 2 +-
spec/build/testsuites/smptests/smpthreadpin02.yml | 20 +
testsuites/smptests/include/smpthreadpin.h | 593 +++++++++++++++++++++
testsuites/smptests/smpthreadpin01/init.c | 581 +-------------------
testsuites/smptests/smpthreadpin02/init.c | 56 ++
.../smptests/smpthreadpin02/smpthreadpin02.doc | 12 +
.../smptests/smpthreadpin02/smpthreadpin02.scn | 35 ++
13 files changed, 862 insertions(+), 586 deletions(-)
create mode 100644 cpukit/score/src/schedulerpinusingaffinity.c
create mode 100644 spec/build/testsuites/smptests/smpthreadpin02.yml
create mode 100644 testsuites/smptests/include/smpthreadpin.h
create mode 100644 testsuites/smptests/smpthreadpin02/init.c
create mode 100644 testsuites/smptests/smpthreadpin02/smpthreadpin02.doc
create mode 100644 testsuites/smptests/smpthreadpin02/smpthreadpin02.scn
--
1.8.3.1
More information about the devel
mailing list