Simple Performance Counters: IA64 support Provide a cycles_to_ns function Signed-off-by: Christoph Lameter --- include/asm-ia64/timex.h | 3 +++ 1 file changed, 3 insertions(+) Index: linux-2.6.23-rc1/include/asm-ia64/timex.h =================================================================== --- linux-2.6.23-rc1.orig/include/asm-ia64/timex.h 2007-07-27 13:47:14.000000000 -0700 +++ linux-2.6.23-rc1/include/asm-ia64/timex.h 2007-07-27 13:47:21.000000000 -0700 @@ -39,4 +39,7 @@ get_cycles (void) return ret; } +#define cycles_to_ns(x) (((x) * local_cpu_data->nsec_per_cyc) \ + >> IA64_NSEC_PER_CYC_SHIFT) + #endif /* _ASM_IA64_TIMEX_H */