Skip to content

Fix #1548, Adding SMP API to OSAL#1549

Merged
arodarrow merged 1 commit into
devfrom
fix-1548-smp-api
Jun 3, 2026
Merged

Fix #1548, Adding SMP API to OSAL#1549
arodarrow merged 1 commit into
devfrom
fix-1548-smp-api

Conversation

@arodarrow

@arodarrow arodarrow commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Checklist (Please check before submitting)

Describe the contribution
Adding SMP API to OSAL for POSIX, VxWorks, RTEMS. Also added a no-impl for those configurations that don't support SMP or that there isn't an implementation for it yet.

Testing performed
Built with the 3 different OS Linux, RTEMS, VxWorks. Checked for functionality of API using the new cFE module TA.

Expected behavior changes
Able to change task affinity and get core num information

System(s) tested on

  • Hardware: PC, VxSIM(on a linux VM), GR740
  • OS: Debian, VxWorks, RTEMS

Additional context
Add any other context about the contribution here.

Third party code
If included, identify any third party code and provide text file of license

Contributor Info - All information REQUIRED for consideration of pull request
Adrian Rodriguez NASA GSFC

Comment thread src/os/shared/src/osapi-task-affinity.c Fixed
Comment thread src/os/shared/src/osapi-task-affinity.c Fixed
Comment thread src/ut-stubs/osapi-task-affinity-stubs.c Fixed
Comment thread src/ut-stubs/osapi-task-affinity-stubs.c Fixed
@arodarrow arodarrow self-assigned this Jun 1, 2026
@arodarrow arodarrow requested a review from jphickey June 1, 2026 19:09

@jphickey jphickey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments but its close

Comment thread src/os/portable/os-impl-pthread-affinity-np.c
Comment thread src/os/rtems/CMakeLists.txt
Comment thread default_config.cmake
jphickey
jphickey previously approved these changes Jun 2, 2026

@jphickey jphickey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussing, this is OK to merge as is

Comment thread src/os/portable/os-impl-pthread-affinity-np.c Fixed
Comment thread src/os/portable/os-impl-pthread-affinity-np.c Fixed
Comment thread src/os/portable/os-impl-pthread-affinity-np.c Fixed
Comment thread src/os/portable/os-impl-pthread-affinity-np.c Fixed
@arodarrow arodarrow requested a review from jphickey June 2, 2026 21:21
@arodarrow arodarrow merged commit 1a28cee into dev Jun 3, 2026
17 checks passed
@arodarrow arodarrow deleted the fix-1548-smp-api branch June 3, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants