--- arch/x86_64/kernel/tsc.c | 4 ++-- include/asm-x86_64/timex.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) Index: linux-2.6.21-rc6/arch/x86_64/kernel/tsc.c =================================================================== --- linux-2.6.21-rc6.orig/arch/x86_64/kernel/tsc.c 2007-04-13 23:11:03.000000000 -0700 +++ linux-2.6.21-rc6/arch/x86_64/kernel/tsc.c 2007-04-13 23:13:02.000000000 -0700 @@ -21,7 +21,7 @@ void set_cyc2ns_scale(unsigned long khz) cyc2ns_scale = (NSEC_PER_MSEC << NS_SCALE) / khz; } -static unsigned long long cycles_2_ns(unsigned long long cyc) +unsigned long long cycles_to_ns(unsigned long long cyc) { return (cyc * cyc2ns_scale) >> NS_SCALE; } @@ -37,7 +37,7 @@ unsigned long long sched_clock(void) */ rdtscll(a); - return cycles_2_ns(a); + return cycles_to_ns(a); } static int tsc_unstable; Index: linux-2.6.21-rc6/include/asm-x86_64/timex.h =================================================================== --- linux-2.6.21-rc6.orig/include/asm-x86_64/timex.h 2007-04-13 23:11:03.000000000 -0700 +++ linux-2.6.21-rc6/include/asm-x86_64/timex.h 2007-04-13 23:13:02.000000000 -0700 @@ -29,4 +29,5 @@ extern int read_current_timer(unsigned l extern void mark_tsc_unstable(void); extern void set_cyc2ns_scale(unsigned long khz); +unsigned long long cycles_to_ns(unsigned long long cyc); #endif