[PATCH 0/2] selftests/cgroup: misc cleanups for test_cpu.c
Shaojie Sun <[email protected]> Wed, 29 Jul 2026 18:04:49 +0800
| Newsgroups | org.kernel.vger.cgroups,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest |
|---|---|
| Message-ID | <[email protected]> |
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