Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set inner.pinned_cpu for pinned tasks #1044

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

tsoutsman
Copy link
Member

When spawning a pinned task, spawn didn't previously set inner.pinned_cpu. This created problems in #1042 because the scheduler didn't know that tasks were pinned and freely migrated them across cores.

When spawning a pinned task, `spawn` didn't previously set
`inner.pinned_cpu`. This created problems in theseus-os#1042 because the scheduler
didn't know that tasks were pinned and freely migrated them across
cores.

Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
Copy link
Member

@kevinaboos kevinaboos left a comment

Choose a reason for hiding this comment

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

Oops! good catch, thanks.

@kevinaboos kevinaboos merged commit cae8ca8 into theseus-os:theseus_main Sep 19, 2023
2 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 19, 2023
* When spawning a pinned task, `spawn` didn't previously set
  `inner.pinned_cpu` for the newly-created `Task`.

* This is not currently a problem because the scheduler doesn't perform
  task migration across CPUs, but when that gets enabled (in #1042),
  it would cause the pinning choice to be ignore by the scheduler.

Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com> cae8ca8
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.

None yet

2 participants