Skip to content

Commit

Permalink
Documentation: Restrict TSC test code to x86
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Peter Foley <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
agraf authored and Jonathan Corbet committed Oct 28, 2014
1 parent 0f8b7f5 commit 371aedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/prctl/Makefile
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 371aedb

Please sign in to comment.