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_flatcg: Make good use of __sync_fetch_and_sub() #412

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

vax-r
Copy link
Contributor

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

Summary

Fetch the value of delta directly from the returned value from __sync_fetch_and_sub, as it returns the origin value of cgc->cvtime_delta.

Additional fetching instruction of cgc->cvtime_delta would be redundant here.

Fetch the value of "delta" directly from the returned value from
__sync_fetch_and_sub, as it returns the origin value of
cgc->cvtime_delta.

Additional fetching instruction of cgc->cvtime_delta would be redundant
here.

Signed-off-by: I Hsin Cheng <[email protected]>
@htejun htejun merged commit af5e89e into sched-ext:main Jul 5, 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.

2 participants