timex.h 469 B

12345678910111213141516171819202122
  1. #ifndef __ASM_GENERIC_TIMEX_H
  2. #define __ASM_GENERIC_TIMEX_H
  3. /*
  4. * If you have a cycle counter, return the value here.
  5. */
  6. typedef unsigned long cycles_t;
  7. #ifndef get_cycles
  8. static inline cycles_t get_cycles(void)
  9. {
  10. return 0;
  11. }
  12. #endif
  13. /*
  14. * Architectures are encouraged to implement read_current_timer
  15. * and define this in order to avoid the expensive delay loop
  16. * calibration during boot.
  17. */
  18. #undef ARCH_HAS_READ_CURRENT_TIMER
  19. #endif /* __ASM_GENERIC_TIMEX_H */