From: Alexander Graf Date: Tue, 28 Oct 2014 00:03:59 +0000 (+0100) Subject: Documentation: Restrict TSC test code to x86 X-Git-Tag: v3.18-rc3~27^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=371aedbfbba542b39e9286ec644f1166f43b5cd3;p=karo-tx-linux.git Documentation: Restrict TSC test code to x86 The prctl test code in Documentation/ tries to show how to use a call that only makes sense on x86. Restrict it there so that other platforms don't try to call asm("rdtsc"). Signed-off-by: Alexander Graf Acked-by: Peter Foley Signed-off-by: Jonathan Corbet --- diff --git a/Documentation/prctl/Makefile b/Documentation/prctl/Makefile index 3e3232dcb2b8..2948b7b124b9 100644 --- a/Documentation/prctl/Makefile +++ b/Documentation/prctl/Makefile @@ -1,5 +1,5 @@ # List of programs to build -hostprogs-y := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test +hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test # Tell kbuild to always build the programs always := $(hostprogs-y)