selftests/cgroup: Adjust cpu test duration based on HZ

For lower HZ values a quota of 1000us is much lower than the amount
of microseconds per tick which makes the tests test_cpucg_max and
test_cpugc_max_nested fail. Increase the test duration to accommodate
for lower HZ values.

Link: https://lore.kernel.org/lkml/20260625203307.1114538-1-joest@redhat.com/
Signed-off-by: Joe Simmons-Talbott <joest@redhat.com>
Acked-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Joe Simmons-Talbott 2026-06-26 16:29:22 -04:00 • committed by Tejun Heo
commit a2703c2980
2 changed files with 38 additions and 6 deletions