]> git.ipfire.org Git - thirdparty/util-linux.git/commit
uclampset: Remove validation logic
authorQais Yousef <qyousef@layalina.io>
Sat, 19 Aug 2023 17:32:41 +0000 (18:32 +0100)
committerQais Yousef <qyousef@layalina.io>
Sat, 19 Aug 2023 17:38:05 +0000 (18:38 +0100)
commit657279109a503e754c426d8f72f7a61aad3d8281
treed689498d3e9cf99caa464ee0be2427a8e90e2dc3
parent27b1269e43850ce17edc4c5d2301c6bb64a98ca5
uclampset: Remove validation logic

While experimenting with a potential extension to uclamp; I realized
I had to modify uclampset to be able to use this extension, which is not
scalable.

Since the syscall will do checks anyway, drop the validation logic and
let the kernel do its work without duplication that can potentially get
stale.

Use more magic value for NOT_SET define. We do have uclamp_set_set flag
to verify if the value is valid anyway, so this is extra paranoia.

Signed-off-by: Qais Yousef <qyousef@layalina.io>
schedutils/uclampset.c