mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 4/7] Simple Performance Counters: IA64 support
@ 2007-07-31 23:25 Christoph Lameter
  0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2007-07-31 23:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: Christoph Lameter

Provide a cycles_to_ns function

Signed-off-by: Christoph Lameter <clameter@sgi.com>
---
 include/asm-ia64/timex.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/asm-ia64/timex.h b/include/asm-ia64/timex.h
index 05a6baf..60a1eeb 100644
--- a/include/asm-ia64/timex.h
+++ b/include/asm-ia64/timex.h
@@ -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 */
-- 
1.5.2.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-31 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-31 23:25 [PATCH 4/7] Simple Performance Counters: IA64 support Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®