[LTP] [PATCH v3 2/2] cpuset_inherit: Remove redundant cpu_string assignment
Yang Xu
xuyang2018.jy@cn.fujitsu.com
Thu Jan 14 03:18:48 CET 2021
Since the previous patch has got this string from "/sys/devices/system/cpu/online"
file, we don't need to assign value for cpu_string here. Remove it.
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
.../cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh | 5 -----
1 file changed, 5 deletions(-)
diff --git a/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh
index 73eed2cb9..650972d4b 100755
--- a/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh
+++ b/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh
@@ -106,11 +106,6 @@ inherit_test()
test_cpus()
{
cfile_name="cpus"
- num=$((nr_cpus-1))
- cpu_string="0-$num"
- if [ $nr_cpus -eq 1 ]; then
- cpu_string="0"
- fi
while read inherit cpus result
do
inherit_test "$CPUSET/1/cpuset.cpus" "$inherit" "$cpus" "$result"
--
2.23.0
More information about the ltp
mailing list