diff options
Diffstat (limited to 'tools/testing/selftests/intel_pstate/run.sh')
| -rwxr-xr-x | tools/testing/selftests/intel_pstate/run.sh | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh index 7868c106b8b1..c670359becc6 100755 --- a/tools/testing/selftests/intel_pstate/run.sh +++ b/tools/testing/selftests/intel_pstate/run.sh @@ -1,4 +1,5 @@  #!/bin/bash +# SPDX-License-Identifier: GPL-2.0  #  # This test runs on Intel x86 based hardware which support the intel_pstate  # driver.  The test checks the frequency settings from the maximum turbo @@ -29,13 +30,12 @@  EVALUATE_ONLY=0 -max_cpus=$(($(nproc)-1)) +if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then +	echo "$0 # Skipped: Test can only run on x86 architectures." +	exit 0 +fi -# compile programs -gcc aperf.c -Wall -D_GNU_SOURCE -o aperf  -lm -[ $? -ne 0 ] && echo "Problem compiling aperf.c." && exit 1 -gcc -o msr msr.c -lm -[ $? -ne 0 ] && echo "Problem compiling msr.c." && exit 1 +max_cpus=$(($(nproc)-1))  function run_test () { |