From: Paul E. McKenney Date: Thu, 10 Sep 2020 05:24:57 +0000 (-0700) Subject: rcuscale: Avoid divide by zero X-Git-Tag: accepted/tizen/unified/20230118.172025~8331^2~2^6~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45c7b962014da36c2ac1aee6e5014b644ba37a84;p=platform%2Fkernel%2Flinux-rpi.git rcuscale: Avoid divide by zero The rcuscale test module does not use batches, so there is only ever one batch. This commit therefore informs the kvm-recheck-rcuscale.sh script of this fact of life. Signed-off-by: Paul E. McKenney --- diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh index aa74515..b582113 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh @@ -32,7 +32,7 @@ sed -e 's/^\[[^]]*]//' < $i/console.log | awk ' /-scale: .* gps: .* batches:/ { ngps = $9; - nbatches = $11; + nbatches = 1; } /-scale: .*writer-duration/ {