Skip to content

Add affinity to IDLE tasks in SMP systems#1415

Open
rus084 wants to merge 1 commit into
FreeRTOS:mainfrom
rus084:idle-affinity-2
Open

Add affinity to IDLE tasks in SMP systems#1415
rus084 wants to merge 1 commit into
FreeRTOS:mainfrom
rus084:idle-affinity-2

Conversation

@rus084
Copy link
Copy Markdown

@rus084 rus084 commented May 12, 2026

Add affinity to IDLE tasks in SMP systems

Description

currently in FreeRTOS idle threads created without affinity

that means it not possible to get idle percentage of specific core in SMP system via vTaskGetRunTimeStatistics. all IDLE threads will have almost same % time

also vApplicationIdleHook may be called from any cpu core, that may create unexpected conditions.

Test Steps

set configIDLE_AFFINITY to 1

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.

@sonarqubecloud
Copy link
Copy Markdown

@aggarg
Copy link
Copy Markdown
Member

aggarg commented May 12, 2026

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.

2 participants