From 73fe2c10e0bfa9cce54dff8cc2d46d665139df8b Mon Sep 17 00:00:00 2001 From: hiramatu Date: Mon, 15 Oct 2007 15:21:23 +0000 Subject: 2007-10-15 Masami Hiramatsu * autoconf-tsc-khz.c: Fix a bug to be configured correctly. --- runtime/autoconf-tsc-khz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/autoconf-tsc-khz.c') diff --git a/runtime/autoconf-tsc-khz.c b/runtime/autoconf-tsc-khz.c index d6424251..8f6a814c 100644 --- a/runtime/autoconf-tsc-khz.c +++ b/runtime/autoconf-tsc-khz.c @@ -1,3 +1,3 @@ #include -unsigned int tsc = tsc_khz; +unsigned int *ptsc = &tsc_khz; -- cgit From 333fe7b868dcd622b4c3b50afb4c6e833a260df0 Mon Sep 17 00:00:00 2001 From: hiramatu Date: Wed, 17 Oct 2007 22:10:23 +0000 Subject: 2007-10-17 Masami Hiramatsu * autoconf-tsc-khz.c: Not to be compiled if the kernel version is younger than 2.6.23 on i386. --- runtime/autoconf-tsc-khz.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/autoconf-tsc-khz.c') 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 #include +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) && defined(__i386__) +#error "tsc_khz is not exported" +#endif unsigned int *ptsc = &tsc_khz; -- cgit