summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-tsc-khz.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2007-10-21 16:34:49 -0400
committerFrank Ch. Eigler <fche@elastic.org>2007-10-21 16:34:49 -0400
commit24993e4fcae48ca014e6b53f3f9a011c9cfa8f06 (patch)
tree90080b050ab62e79e7d111cc764a75dba91ad485 /runtime/autoconf-tsc-khz.c
parent11088605d9c0ab753e613b9ae52b6e59948cfc83 (diff)
parentf994dd4997067ca69b3b10ff8fa1547987aed585 (diff)
downloadsystemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.tar.gz
systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.tar.xz
systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/autoconf-tsc-khz.c')
-rw-r--r--runtime/autoconf-tsc-khz.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/autoconf-tsc-khz.c b/runtime/autoconf-tsc-khz.c
index d6424251..6c3f453e 100644
--- a/runtime/autoconf-tsc-khz.c
+++ b/runtime/autoconf-tsc-khz.c
@@ -1,3 +1,7 @@
+#include <linux/version.h>
#include <asm/tsc.h>
-unsigned int tsc = tsc_khz;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) && defined(__i386__)
+#error "tsc_khz is not exported"
+#endif
+unsigned int *ptsc = &tsc_khz;