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

scx_rusty: Remove skip_while in find_first_candidate #435

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

vax-r
Copy link
Contributor

@vax-r vax-r commented Jul 16, 2024

Summary

Followed commit 1c3b563, move the checking of task.migrated.get() into the vector filter. In this way, we can remove the skip_while() call in find_first_candidate().

@Byte-Lab
Copy link
Contributor

LGTM, but could you please rebase onto main and repush?

Followed commit 1c3b563, move the checking of task.migrated.get() into
the vector filter. In this way, we can remove the skip_while() call in
find_first_candidate().

Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
Remove unused variable "has_preferred_dom".

Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
@vax-r
Copy link
Contributor Author

vax-r commented Jul 17, 2024

I've rebased it and found an unused variable in recent commits. I removed it and contain it in this PR, hope it doesn't harm.

@@ -1507,7 +1507,6 @@ static u32 task_pick_domain(struct task_ctx *taskc, struct task_struct *p,
{
s32 cpu = bpf_get_smp_processor_id();
u32 first_dom = NO_DOM_FOUND, dom, preferred_dom = NO_DOM_FOUND;
int has_preferred_dom;
Copy link
Contributor

Choose a reason for hiding this comment

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

Whoops, I left that in... nice catch!

@hodgesds hodgesds merged commit d974690 into sched-ext:main Jul 19, 2024
1 check passed
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.

3 participants