public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation: Restrict TSC test code to x86
@ 2014-10-28  0:03 Alexander Graf
  2014-10-28  0:07 ` Peter Foley
  0 siblings, 1 reply; 9+ messages in thread
From: Alexander Graf @ 2014-10-28  0:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-doc, Jiri Kosina, Randy Dunlap, Peter Foley, afaerber

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>
---
 Documentation/prctl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/prctl/Makefile b/Documentation/prctl/Makefile
index 3e3232d..2948b7b 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)
 
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-11-02 10:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28  0:03 [PATCH] Documentation: Restrict TSC test code to x86 Alexander Graf
2014-10-28  0:07 ` Peter Foley
2014-10-28 12:47   ` Jonathan Corbet
2014-10-28 13:12     ` Alexander Graf
2014-11-01 12:03       ` Matwey V. Kornilov
2014-11-01 21:16         ` Alexander Graf
2014-11-02  7:46           ` Matwey V. Kornilov
2014-11-02  8:16             ` Alexander Graf
2014-11-02 10:28               ` Matwey V. Kornilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox