timex.h 681 B

1234567891011121314151617181920212223242526
  1. /* timex.h: FR-V architecture timex specifications
  2. */
  3. #ifndef _ASM_TIMEX_H
  4. #define _ASM_TIMEX_H
  5. #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
  6. #define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
  7. typedef unsigned long cycles_t;
  8. static inline cycles_t get_cycles(void)
  9. {
  10. return 0;
  11. }
  12. #define vxtime_lock() do {} while (0)
  13. #define vxtime_unlock() do {} while (0)
  14. /* This attribute is used in include/linux/jiffies.h alongside with
  15. * __cacheline_aligned_in_smp. It is assumed that __cacheline_aligned_in_smp
  16. * for frv does not contain another section specification.
  17. */
  18. #define __jiffy_arch_data __attribute__((__section__(".data")))
  19. #endif