Skip to content

Conversation

@Dazza0
Copy link
Contributor

@Dazza0 Dazza0 commented Oct 23, 2023

Description

SMP is enabled/disabled via the configNUMBER_OF_CORES option. This PR simply renames all occurrences of CPU to Core in any public facing API for naming consistency. The following APIs have been renamed:

  • traceENTER_xTaskGetCurrentTaskHandleCPU -> traceENTER_xTaskGetCurrentTaskHandleForCore
  • xTaskGetCurrentTaskHandleCPU -> xTaskGetCurrentTaskHandleForCore

This commit renames "CPU" to "Core" for any public facing API for consistency with other SMP related APIs (e.g., "configNUMBER_OF_CORES").

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This commit renames "CPU" to "Core" for any public facing API for consistency
with other SMP related APIs (e.g., "configNUMBER_OF_CORES").
@Dazza0
Copy link
Contributor Author

Dazza0 commented Oct 23, 2023

@aggarg @chinglee-iot Do we need to add some compatibility macros if there hasn't been a SMP capable release of FreeRTOS thus far?

@aggarg
Copy link
Member

aggarg commented Oct 23, 2023

@Dazza0 - We do not need backward compatibility macros as there is no release with SMP yet.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9f4a0e3) 93.64% compared to head (77426a4) 93.64%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #849   +/-   ##
=======================================
  Coverage   93.64%   93.64%           
=======================================
  Files           6        6           
  Lines        2549     2549           
  Branches      608      608           
=======================================
  Hits         2387     2387           
  Misses        107      107           
  Partials       55       55           
Flag Coverage Δ
unittests 93.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
tasks.c 94.82% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aggarg aggarg merged commit fc7aca7 into FreeRTOS:main Oct 23, 2023
n9wxu pushed a commit to n9wxu/FreeRTOS-Kernel that referenced this pull request Oct 26, 2023
This commit renames "CPU" to "Core" for any public facing API for consistency
with other SMP related APIs (e.g., "configNUMBER_OF_CORES").

Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
@Dazza0 Dazza0 deleted the rename-cpu-to-core branch October 29, 2023 18:42
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.

3 participants