-
Notifications
You must be signed in to change notification settings - Fork 116
[Deepin-Kernel-SIG] [linux 6.18-y] [BORE] linux6.18.22-bore-6.6.3 #1633
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3880,11 +3880,17 @@ void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, | |
| bool curr = cfs_rq->curr == se; | ||
| bool rel_vprot = false; | ||
| u64 vprot; | ||
| #ifdef CONFIG_SCHED_BORE | ||
| s64 vlag_unscaled = 0; | ||
| #endif /* !CONFIG_SCHED_BORE */ | ||
|
|
||
| if (se->on_rq) { | ||
| /* commit outstanding execution time */ | ||
| update_curr(cfs_rq); | ||
| update_entity_lag(cfs_rq, se); | ||
| #ifdef CONFIG_SCHED_BORE | ||
| vlag_unscaled = se->vlag; | ||
| #endif /* !CONFIG_SCHED_BORE */ | ||
|
Comment on lines
+3891
to
+3893
|
||
| se->deadline -= se->vruntime; | ||
| se->rel_deadline = 1; | ||
| if (curr && protect_slice(se)) { | ||
|
|
@@ -3920,6 +3926,16 @@ void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, | |
|
|
||
| enqueue_load_avg(cfs_rq, se); | ||
| if (se->on_rq) { | ||
| #ifdef CONFIG_SCHED_BORE | ||
| if (curr) { | ||
| se->vruntime += vlag_unscaled - se->vlag; | ||
| if (se->rel_deadline) { | ||
| se->deadline += se->vruntime; | ||
| se->rel_deadline = 0; | ||
| } | ||
| } | ||
| else | ||
| #endif /* !CONFIG_SCHED_BORE */ | ||
| place_entity(cfs_rq, se, 0); | ||
|
Comment on lines
+3929
to
3939
|
||
| if (rel_vprot) | ||
| se->vprot = se->vruntime + vprot; | ||
|
|
||
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 #endif comment says "!CONFIG_SCHED_BORE" but the corresponding conditional is "#ifdef CONFIG_SCHED_BORE". Please update the trailing comment to match the actual condition to avoid confusion during future maintenance (and keep it consistent with kernel style expectations).