Skip to content

Commit 758b2e2

Browse files
committed
helpers.bats: cgroups_cpu_burst: check kernel version
On cgroup v2, cpu burst needs kernel >= 5.14 torvalds/linux@f418371 Signed-off-by: Akihiro Suda <[email protected]>
1 parent d618c6f commit 758b2e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/helpers.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ function requires() {
465465
p="$CGROUP_CPU_BASE_PATH"
466466
f="cpu.cfs_burst_us"
467467
elif [ -v CGROUP_V2 ]; then
468+
# https://github.com/torvalds/linux/commit/f4183717b370ad28dd0c0d74760142b20e6e7931
469+
requires_kernel 5.14
468470
p="$CGROUP_BASE_PATH"
469471
f="cpu.max.burst"
470472
fi

0 commit comments

Comments
 (0)