FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.52k stars 1.05k forks source link

Add default core affinity config value. #996

Closed go2sh closed 5 months ago

go2sh commented 5 months ago

Description

Add a config define to set the default core affinity mask for tasks created without an affinity mask specified via arguments.

Test Steps

Set configTASK_DEFAULT_CORE_AFFINITY to 1 and check if all tasks created without an affinity mask specified run on core 0.

Checklist:

Related Issue

Closes #993.

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

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4d34700) 93.53% compared to head (b94672e) 93.53%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #996 +/- ## ======================================= Coverage 93.53% 93.53% ======================================= Files 6 6 Lines 3200 3200 Branches 889 889 ======================================= Hits 2993 2993 Misses 92 92 Partials 115 115 ``` | [Flag](https://app.codecov.io/gh/FreeRTOS/FreeRTOS-Kernel/pull/996/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FreeRTOS) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/FreeRTOS/FreeRTOS-Kernel/pull/996/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FreeRTOS) | `93.53% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FreeRTOS#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rawalexe commented 5 months ago

There is a formatting patch generated at the artifacts section of ci/cd can you also please apply that to your code.

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud