diff options
Diffstat (limited to 'runtime/autoconf-tsc-khz.c')
-rw-r--r-- | runtime/autoconf-tsc-khz.c | 6 |
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; |