Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <agraf@suse.de>
Acked-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Alexander Graf and committed by
Jonathan Corbet
371aedbf 0f8b7f5d

+1 -1
+1 -1
Documentation/prctl/Makefile
··· 1 1 # List of programs to build 2 - hostprogs-y := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test 2 + hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test 3 3 # Tell kbuild to always build the programs 4 4 always := $(hostprogs-y) 5 5