From: Christoph Lameter <clameter@sgi.com>
To: linux-kernel@vger.kernel.org
Cc: Christoph Lameter <clameter@sgi.com>
Subject: [PATCH 4/7] Simple Performance Counters: IA64 support
Date: Tue, 31 Jul 2007 16:25:09 -0700 [thread overview]
Message-ID: <11859243122176-git-send-email-clameter@sgi.com> (raw)
In-Reply-To: simple-perf-counters
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
reply other threads:[~2007-07-31 23:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11859243122176-git-send-email-clameter@sgi.com \
--to=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®