timex.h 915 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __ASM_SH64_TIMEX_H
  2. #define __ASM_SH64_TIMEX_H
  3. /*
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * include/asm-sh64/timex.h
  9. *
  10. * Copyright (C) 2000, 2001 Paolo Alberelli
  11. * Copyright (C) 2003 Paul Mundt
  12. *
  13. * sh-5 architecture timex specifications
  14. *
  15. */
  16. #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
  17. #define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
  18. #define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
  19. (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \
  20. << (SHIFT_SCALE-SHIFT_HZ)) / HZ)
  21. typedef unsigned long cycles_t;
  22. static __inline__ cycles_t get_cycles (void)
  23. {
  24. return 0;
  25. }
  26. #define vxtime_lock() do {} while (0)
  27. #define vxtime_unlock() do {} while (0)
  28. #endif /* __ASM_SH64_TIMEX_H */