diff options
author | hiramatu <hiramatu> | 2007-10-17 22:10:23 +0000 |
---|---|---|
committer | hiramatu <hiramatu> | 2007-10-17 22:10:23 +0000 |
commit | 333fe7b868dcd622b4c3b50afb4c6e833a260df0 (patch) | |
tree | 22f929fe3556431c2295ceeea9d048e04664b838 | |
parent | 5e00dea745463fb0deb474b3f2a0f9a27948984e (diff) | |
download | systemtap-steved-333fe7b868dcd622b4c3b50afb4c6e833a260df0.tar.gz systemtap-steved-333fe7b868dcd622b4c3b50afb4c6e833a260df0.tar.xz systemtap-steved-333fe7b868dcd622b4c3b50afb4c6e833a260df0.zip |
2007-10-17 Masami Hiramatsu <mhiramat@redhat.com>
* autoconf-tsc-khz.c: Not to be compiled if the kernel version is
younger than 2.6.23 on i386.
-rw-r--r-- | runtime/ChangeLog | 5 | ||||
-rw-r--r-- | runtime/autoconf-tsc-khz.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index a7dea2c4..798d56d3 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,8 @@ +2007-10-17 Masami Hiramatsu <mhiramat@redhat.com> + + * autoconf-tsc-khz.c: Not to be compiled if the kernel version is + younger than 2.6.23 on i386. + 2007-10-17 Martin Hunt <hunt@redhat.com> PR5000 * vsprintf.c: Remove _stp_endian. diff --git a/runtime/autoconf-tsc-khz.c b/runtime/autoconf-tsc-khz.c index 8f6a814c..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> +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) && defined(__i386__) +#error "tsc_khz is not exported" +#endif unsigned int *ptsc = &tsc_khz; |