[PATCH 0/2] selftests/cgroup: misc cleanups for test_cpu.c

From: Shaojie Sun

Date: Wed Jul 29 2026 - 07:07:03 EST


This series contains two minor cleanups to the cgroup cpu
controller selftests:

- Patch 1 removes a redundant user_usec read in test_cpucg_nice
that is never used after being read.

- Patch 2 makes test_cpucg_max and test_cpucg_max_nested write
both quota and period explicitly to cpu.max instead of relying
on the kernel default period, making the tests self-documenting
and the remainder calculation genuinely useful. Misleading
variable names are also cleaned up.

Shaojie Sun (2):
selftests/cgroup: remove unused user_usec read in test_cpucg_nice
selftests/cgroup: write explicit period to cpu.max in max tests

tools/testing/selftests/cgroup/test_cpu.c | 27 ++++++++++++-----------
1 file changed, 14 insertions(+), 13 deletions(-)

--
2.25.1