Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/include/asm-x86_64/timex.h |
| 3 | * |
| 4 | * x86-64 architecture timex specifications |
| 5 | */ |
| 6 | #ifndef _ASMx8664_TIMEX_H |
| 7 | #define _ASMx8664_TIMEX_H |
| 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | #include <asm/8253pit.h> |
| 10 | #include <asm/msr.h> |
| 11 | #include <asm/vsyscall.h> |
| 12 | #include <asm/hpet.h> |
| 13 | |
| 14 | #define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */ |
| 15 | |
| 16 | typedef unsigned long long cycles_t; |
| 17 | |
| 18 | static inline cycles_t get_cycles (void) |
| 19 | { |
| 20 | unsigned long long ret; |
| 21 | |
| 22 | rdtscll(ret); |
| 23 | return ret; |
| 24 | } |
| 25 | |
| 26 | extern unsigned int cpu_khz; |
| 27 | |
Venkatesh Pallipadi | 8a9e1b0 | 2005-06-23 00:08:13 -0700 | [diff] [blame] | 28 | extern int read_current_timer(unsigned long *timer_value); |
| 29 | #define ARCH_HAS_READ_CURRENT_TIMER 1 |
| 30 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | extern struct vxtime_data vxtime; |
| 32 | |
| 33 | #endif |