arm64 and x86_64 has the same nr_hugepages requriement for running the
va_high_addr_switch test. Since commit d9d957bd7b61 ("selftests/mm: alloc
hugepages in va_high_addr_switch test"), the setup can be done in
va_high_addr_switch.sh. So remove the duplicated setup.

CC: Luiz Capitulino <[email protected]>
Signed-off-by: Chunyu Hu <[email protected]>
---
 tools/testing/selftests/mm/run_vmtests.sh | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/tools/testing/selftests/mm/run_vmtests.sh 
b/tools/testing/selftests/mm/run_vmtests.sh
index d9173f2312b7..2dadbfc6e535 100755
--- a/tools/testing/selftests/mm/run_vmtests.sh
+++ b/tools/testing/selftests/mm/run_vmtests.sh
@@ -412,15 +412,7 @@ if [ $VADDR64 -ne 0 ]; then
        fi
 
        # va high address boundary switch test
-       ARCH_ARM64="arm64"
-       prev_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages)
-       if [ "$ARCH" == "$ARCH_ARM64" ]; then
-               echo 6 > /proc/sys/vm/nr_hugepages
-       fi
        CATEGORY="hugevm" run_test bash ./va_high_addr_switch.sh
-       if [ "$ARCH" == "$ARCH_ARM64" ]; then
-               echo $prev_nr_hugepages > /proc/sys/vm/nr_hugepages
-       fi
 fi # VADDR64
 
 # vmalloc stability smoke test
-- 
2.49.0


Reply via email to