timex.h 814 B

12345678910111213141516171819202122232425262728293031
  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. #include <asm/8253pit.h>
  9. #include <asm/msr.h>
  10. #include <asm/vsyscall.h>
  11. #include <asm/system.h>
  12. #include <asm/processor.h>
  13. #include <asm/tsc.h>
  14. #include <linux/compiler.h>
  15. #define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */
  16. extern int read_current_timer(unsigned long *timer_value);
  17. #define ARCH_HAS_READ_CURRENT_TIMER 1
  18. #define USEC_PER_TICK (USEC_PER_SEC / HZ)
  19. #define NSEC_PER_TICK (NSEC_PER_SEC / HZ)
  20. #define FSEC_PER_TICK (FSEC_PER_SEC / HZ)
  21. #define NS_SCALE 10 /* 2^10, carefully chosen */
  22. #define US_SCALE 32 /* 2^32, arbitralrily chosen */
  23. extern void mark_tsc_unstable(char *msg);
  24. extern void set_cyc2ns_scale(unsigned long khz);
  25. #endif