]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftest/cgroup: Make test_cpuset_prs.sh deal with pre-isolated CPUs
authorWaiman Long <longman@redhat.com>
Tue, 20 Aug 2024 19:55:36 +0000 (15:55 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 30 Aug 2024 19:23:39 +0000 (09:23 -1000)
commit43a17fcfcc4294f53ece15425ba362f5e28664c2
treedca8f40b92bb74a21f51d3d4c015483cfafc9e02
parentc188f33c864e3dba49a1ad0dc9fddf2f49ac42ae
selftest/cgroup: Make test_cpuset_prs.sh deal with pre-isolated CPUs

Since isolated CPUs can be reserved at boot time via the "isolcpus"
boot command line option, these pre-isolated CPUs may interfere with
testing done by test_cpuset_prs.sh.

With the previous commit that incorporates those boot time isolated CPUs
into "cpuset.cpus.isolated", we can check for those before testing is
started to make sure that there will be no interference.  Otherwise,
this test will be skipped if incorrect test failure can happen.

As "cpuset.cpus.isolated" is now available in a non cgroup_debug kernel,
we don't need to check for its existence anymore.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/test_cpuset_prs.sh