All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests/cgroup: misc cleanups for test_cpu.c
@ 2026-07-29 10:04 Shaojie Sun
  2026-07-29 10:04 ` [PATCH 1/2] selftests/cgroup: remove unused user_usec read in test_cpucg_nice Shaojie Sun
  2026-07-29 10:04 ` [PATCH 2/2] selftests/cgroup: write explicit period to cpu.max in max tests Shaojie Sun
  0 siblings, 2 replies; 5+ messages in thread
From: Shaojie Sun @ 2026-07-29 10:04 UTC (permalink / raw)
  To: tj, hannes, mkoutny, shuah
  Cc: cgroups, linux-kselftest, linux-kernel, Shaojie Sun

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-29 11:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 10:04 [PATCH 0/2] selftests/cgroup: misc cleanups for test_cpu.c Shaojie Sun
2026-07-29 10:04 ` [PATCH 1/2] selftests/cgroup: remove unused user_usec read in test_cpucg_nice Shaojie Sun
2026-07-29 11:58   ` Michal Koutný
2026-07-29 10:04 ` [PATCH 2/2] selftests/cgroup: write explicit period to cpu.max in max tests Shaojie Sun
2026-07-29 11:53   ` Michal Koutný

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.