aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2000-11-21 19:55:21 +0000
committerMark Murray <markm@FreeBSD.org>2000-11-21 19:55:21 +0000
commit58550067673ef1af57be0eb5f9565d6007e8acda (patch)
treedc95ee4c03b1b27bb867b5b969b4037f426bc316 /sys/alpha/include
parentc6fa9f78d2ffa31f403b2d8830b53cf10d1384c0 (diff)
Notes
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/cpu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h
index a45b4d10558e..a0be38fe0f51 100644
--- a/sys/alpha/include/cpu.h
+++ b/sys/alpha/include/cpu.h
@@ -173,6 +173,16 @@ void syscall __P((u_int64_t, struct trapframe *));
void trap __P((unsigned long, unsigned long, unsigned long, unsigned long,
struct trapframe *));
+/*
+ * Return contents of in-cpu fast counter as a sort of "bogo-time"
+ * for non-critical timing.
+ */
+static __inline u_int64_t
+get_cyclecount(void)
+{
+ return (alpha_rpcc());
+}
+
#endif /* _KERNEL */
#endif /* _ALPHA_CPU_H_ */