Skip to content

Commit ad32bb4

Browse files
Pavankumar KondetiPeter Zijlstra
authored andcommitted
sched/debug: Fix requested task uclamp values shown in procfs
The intention of commit 96e74eb ("sched/debug: Add task uclamp values to SCHED_DEBUG procfs") was to print requested and effective task uclamp values. The requested values printed are read from p->uclamp, which holds the last effective values. Fix this by printing the values from p->uclamp_req. Fixes: 96e74eb ("sched/debug: Add task uclamp values to SCHED_DEBUG procfs") Signed-off-by: Pavankumar Kondeti <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Tested-by: Valentin Schneider <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent b34cb07 commit ad32bb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/sched/debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,8 +948,8 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns,
948948
P(se.avg.util_est.enqueued);
949949
#endif
950950
#ifdef CONFIG_UCLAMP_TASK
951-
__PS("uclamp.min", p->uclamp[UCLAMP_MIN].value);
952-
__PS("uclamp.max", p->uclamp[UCLAMP_MAX].value);
951+
__PS("uclamp.min", p->uclamp_req[UCLAMP_MIN].value);
952+
__PS("uclamp.max", p->uclamp_req[UCLAMP_MAX].value);
953953
__PS("effective uclamp.min", uclamp_eff_value(p, UCLAMP_MIN));
954954
__PS("effective uclamp.max", uclamp_eff_value(p, UCLAMP_MAX));
955955
#endif

0 commit comments

Comments
 (0)