aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/intel_pstate/run.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh
index c670359becc6..6ded61670f6d 100755
--- a/tools/testing/selftests/intel_pstate/run.sh
+++ b/tools/testing/selftests/intel_pstate/run.sh
@@ -30,9 +30,12 @@
30 30
31EVALUATE_ONLY=0 31EVALUATE_ONLY=0
32 32
33# Kselftest framework requirement - SKIP code is 4.
34ksft_skip=4
35
33if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then 36if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then
34 echo "$0 # Skipped: Test can only run on x86 architectures." 37 echo "$0 # Skipped: Test can only run on x86 architectures."
35 exit 0 38 exit $ksft_skip
36fi 39fi
37 40
38max_cpus=$(($(nproc)-1)) 41max_cpus=$(($(nproc)-1))