Index: include/asm-i386/hrtime-M586.h =================================================================== RCS file: /home/cvs/kernel/linux-2.4.18/src/include/asm-i386/hrtime-M586.h,v retrieving revision 1.2 diff -u -r1.2 hrtime-M586.h --- include/asm-i386/hrtime-M586.h 14 Aug 2002 21:23:01 -0000 1.2 +++ include/asm-i386/hrtime-M586.h 20 Aug 2002 02:17:45 -0000 @@ -47,6 +47,12 @@ unsigned long arch_to_nsec; unsigned long usec_to_arch; unsigned long nsec_to_arch; +#include +EXPORT_SYMBOL(arch_to_usec); +EXPORT_SYMBOL(arch_to_nsec); +EXPORT_SYMBOL(usec_to_arch); +EXPORT_SYMBOL(nsec_to_arch); + /* * This gets redefined when we calibrate the TSC */ Index: include/linux/hrtime.h =================================================================== RCS file: /home/cvs/kernel/linux-2.4.18/src/include/linux/hrtime.h,v retrieving revision 1.2 diff -u -r1.2 hrtime.h --- include/linux/hrtime.h 14 Aug 2002 21:23:01 -0000 1.2 +++ include/linux/hrtime.h 20 Aug 2002 02:18:40 -0000 @@ -98,6 +98,7 @@ #define IF_HIGH_RES(a) a #else /* CONFIG_HIGH_RES_TIMERS */ +#define IF_ALL_PERIODIC(a) #define IF_HIGH_RES(a) #define nsec_to_arch_cycles(a) 0 Index: kernel/itimer.c =================================================================== RCS file: /home/cvs/kernel/linux-2.4.18/src/kernel/itimer.c,v retrieving revision 1.4 diff -u -r1.4 itimer.c --- kernel/itimer.c 14 Aug 2002 21:23:01 -0000 1.4 +++ kernel/itimer.c 20 Aug 2002 02:20:32 -0000 @@ -1324,6 +1324,7 @@ } while (unlikely(jiffies_64_f != jiffies_64)); #endif +#ifdef CONFIG_HIGH_RES /* * Remember that quick_update_jiffies_sub() can return more * than a jiffies worth of cycles... @@ -1332,6 +1333,7 @@ sub_jiff_offset -= cycles_per_jiffies; jiffies_64_f++; } +#endif tp->tv_sec = div_long_long_rem(jiffies_64_f,HZ,&sub_sec); tp->tv_nsec = sub_sec * (NSEC_PER_SEC / HZ); Index: kernel/ksyms.c =================================================================== RCS file: /home/cvs/kernel/linux-2.4.18/src/kernel/ksyms.c,v retrieving revision 1.11 diff -u -r1.11 ksyms.c --- kernel/ksyms.c 11 Jul 2002 23:30:54 -0000 1.11 +++ kernel/ksyms.c 20 Aug 2002 02:20:34 -0000 @@ -52,6 +52,7 @@ #include #include #include +#include #if defined(CONFIG_PROC_FS) #include @@ -416,6 +417,9 @@ EXPORT_SYMBOL(mod_timer); EXPORT_SYMBOL(tq_timer); EXPORT_SYMBOL(tq_immediate); +#ifdef CONFIG_HIGH_RES_TIMERS +EXPORT_SYMBOL(cycles_per_jiffies); +#endif #ifdef CONFIG_SMP /* Various random spinlocks we want to export */