mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
selftests: intel_pstate: build only on x86
These tests are only for x86, so don't try to build or run them on other architectures. Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
parent
172a8ca880
commit
67b2e30eb7
@ -1,7 +1,9 @@
|
||||
CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE
|
||||
LDLIBS := $(LDLIBS) -lm
|
||||
|
||||
ifeq (,$(filter $(ARCH),x86))
|
||||
TEST_GEN_FILES := msr aperf
|
||||
endif
|
||||
|
||||
TEST_PROGS := run.sh
|
||||
|
||||
|
@ -29,6 +29,11 @@
|
||||
|
||||
EVALUATE_ONLY=0
|
||||
|
||||
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
|
||||
|
||||
max_cpus=$(($(nproc)-1))
|
||||
|
||||
# compile programs
|
||||
|
Loading…
Reference in New Issue
Block a user