-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
kernel: Simplify k_thread_cpu_pin() #78601
Conversation
kernel/cpu_mask.c
Outdated
@@ -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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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]>
ad84d21
to
4fc5785
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean
Simplifies the k_thread_cpu_pin() implementation to leverage the existing cpu_mask_mod() infrastructure.