]> git.proxmox.com Git - pve-common.git/commit
cgroup: move get_cpuunits helper from qemu-server as clamp_cpu_shares
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Oct 2022 10:29:35 +0000 (12:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Oct 2022 10:30:21 +0000 (12:30 +0200)
commit07c10d58a60a011b3a8458b5f91352b6c4589c76
tree1a15a4569d10c24d7bb27ccfc7952124806ba370
parent8949840eab24b9413495dccfbe65c22b33a146c6
cgroup: move get_cpuunits helper from qemu-server as clamp_cpu_shares

Based on a patch from Fiona[0] that proposed to move it to
guest-common, rather go for common where the CGroup module resides to
avoid having to touch multiple sites if this changes another time
(hopefully not)

[0]: https://lists.proxmox.com/pipermail/pve-devel/2022-October/054225.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CGroup.pm