We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a509a7c commit a87498aCopy full SHA for a87498a
kernel/sched/core.c
@@ -1082,6 +1082,14 @@ static void uclamp_fork(struct task_struct *p)
1082
1083
for_each_clamp_id(clamp_id)
1084
p->uclamp[clamp_id].active = false;
1085
+
1086
+ if (likely(!p->sched_reset_on_fork))
1087
+ return;
1088
1089
+ for_each_clamp_id(clamp_id) {
1090
+ uclamp_se_set(&p->uclamp_req[clamp_id],
1091
+ uclamp_none(clamp_id), false);
1092
+ }
1093
}
1094
1095
static void __init init_uclamp(void)
0 commit comments