lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 31 Jul 2007 16:25:09 -0700
From:	Christoph Lameter <clameter@....com>
To:	linux-kernel@...r.kernel.org
Cc:	Christoph Lameter <clameter@....com>
Subject: [PATCH 4/7] Simple Performance Counters: IA64 support

Provide a cycles_to_ns function

Signed-off-by: Christoph Lameter <clameter@....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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ