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

kernel: Simplify k_thread_cpu_pin() #78601

Merged

Conversation

peter-mitsis
Copy link
Collaborator

Simplifies the k_thread_cpu_pin() implementation to leverage the existing cpu_mask_mod() infrastructure.

npitre
npitre previously approved these changes Sep 18, 2024
@@ -66,11 +66,7 @@ int k_thread_cpu_mask_disable(k_tid_t thread, int cpu)

int k_thread_cpu_pin(k_tid_t thread, int cpu)
{
int ret;
uint32_t mask = BIT(cpu);
Copy link
Member

Choose a reason for hiding this comment

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

The CI warning here is legit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ycsin - The latest push should fix that CI warning.

Simplifies the k_thread_cpu_pin() implementation to leverage the
existing cpu_mask_mod() infrastructure.

Signed-off-by: Peter Mitsis <[email protected]>
Copy link
Contributor

@andyross andyross left a comment

Choose a reason for hiding this comment

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

clean

@henrikbrixandersen henrikbrixandersen merged commit eda5814 into zephyrproject-rtos:main Sep 20, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants