Skip to content

Commit

Permalink
helpers.bats: cgroups_cpu_burst: check kernel version
Browse files Browse the repository at this point in the history
On cgroup v2, cpu burst needs kernel >= 5.14
torvalds/linux@f418371

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Apr 10, 2024
1 parent 6b076bf commit 4099fd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ function requires() {
p="$CGROUP_CPU_BASE_PATH"
f="cpu.cfs_burst_us"
elif [ -v CGROUP_V2 ]; then
# https://github.com/torvalds/linux/commit/f4183717b370ad28dd0c0d74760142b20e6e7931
requires_kernel 5.14
p="$CGROUP_BASE_PATH"
f="cpu.max.burst"
fi
Expand Down

0 comments on commit 4099fd5

Please sign in to comment.