timex.h 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * linux/include/asm-m68k/timex.h
  3. *
  4. * m68k architecture timex specifications
  5. */
  6. #ifndef _ASMm68K_TIMEX_H
  7. #define _ASMm68K_TIMEX_H
  8. #ifdef CONFIG_COLDFIRE
  9. /*
  10. * CLOCK_TICK_RATE should give the underlying frequency of the tick timer
  11. * to make ntp work best. For Coldfires, that's the main clock.
  12. */
  13. #include <asm/coldfire.h>
  14. #define CLOCK_TICK_RATE MCF_CLK
  15. #else
  16. /*
  17. * This default CLOCK_TICK_RATE is probably wrong for many 68k boards
  18. * Users of those boards will need to check and modify accordingly
  19. */
  20. #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
  21. #endif
  22. typedef unsigned long cycles_t;
  23. static inline cycles_t get_cycles(void)
  24. {
  25. return 0;
  26. }
  27. extern unsigned long (*mach_random_get_entropy)(void);
  28. static inline unsigned long random_get_entropy(void)
  29. {
  30. if (mach_random_get_entropy)
  31. return mach_random_get_entropy();
  32. return 0;
  33. }
  34. #define random_get_entropy random_get_entropy
  35. #endif