Skip to contentSkip to conversation

Simple Performance Counters: IA64 support

PATCH In review Christoph Lameter 1 participant 1 message Jul 31, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 Simple Performance Counters: IA64 support

Provide a cycles_to_ns function

---
 include/asm-ia64/timex.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/asm-ia64/timex.h +3 -0
index 05a6baf..60a1eeb 100644
@@ -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 */
Signature · 1 line
1.5.2.4