timex.h 542 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_M32R_TIMEX_H
  2. #define _ASM_M32R_TIMEX_H
  3. /*
  4. * linux/include/asm-m32r/timex.h
  5. *
  6. * m32r architecture timex specifications
  7. */
  8. #define CLOCK_TICK_RATE (CONFIG_BUS_CLOCK / CONFIG_TIMER_DIVIDE)
  9. #define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
  10. #ifdef __KERNEL__
  11. /*
  12. * Standard way to access the cycle counter.
  13. * Currently only used on SMP.
  14. */
  15. typedef unsigned long long cycles_t;
  16. static __inline__ cycles_t get_cycles (void)
  17. {
  18. return 0;
  19. }
  20. #endif /* __KERNEL__ */
  21. #endif /* _ASM_M32R_TIMEX_H */