]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: Add uclamp reset support via -1 sentinel
authorFurkan Caliskan <frn1furkan10@gmail.com>
Fri, 15 May 2026 05:37:25 +0000 (08:37 +0300)
committerFurkan Caliskan <frn1furkan10@gmail.com>
Mon, 25 May 2026 11:27:34 +0000 (14:27 +0300)
commitd671dbdd1aa2de5762301fca2544213b66903bdc
treef02f2241a4ff9310118b2df4b6cd4c6742ec3a02
parent87a09f474a532675b6f0c3659af2b4ae740ff822
chrt: Add uclamp reset support via -1 sentinel

Passing -1 to --clamp-min or --clamp-max sets the corresponding
sched_attr field to UINT32_MAX, which tells the kernel to reset
the utilization clamp to its system default. Resetting requires
kernel >= 5.11, otherwise the syscall will fail with EINVAL.

Closes: https://github.com/util-linux/util-linux/issues/4339
Suggested-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Signed-off-by: Furkan Caliskan <frn1furkan10@gmail.com>
schedutils/chrt.1.adoc
schedutils/chrt.c