diff options
| author | Mark Murray <markm@FreeBSD.org> | 2000-11-21 19:55:21 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2000-11-21 19:55:21 +0000 |
| commit | 58550067673ef1af57be0eb5f9565d6007e8acda (patch) | |
| tree | dc95ee4c03b1b27bb867b5b969b4037f426bc316 /sys/ia64/include/cpu.h | |
| parent | c6fa9f78d2ffa31f403b2d8830b53cf10d1384c0 (diff) | |
Notes
Diffstat (limited to 'sys/ia64/include/cpu.h')
| -rw-r--r-- | sys/ia64/include/cpu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/ia64/include/cpu.h b/sys/ia64/include/cpu.h index d72f1d2388ef..c6ebd1c61451 100644 --- a/sys/ia64/include/cpu.h +++ b/sys/ia64/include/cpu.h @@ -166,6 +166,16 @@ void switch_trampoline __P((void)); /* MAGIC */ void syscall __P((int, u_int64_t *, struct trapframe *)); void trap __P((int vector, int imm, struct trapframe *framep)); +/* + * 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 (ia64_get_itc()); +} + #endif /* _KERNEL */ #endif /* _MACHINE_CPU_H_ */ |
