delay.h 498 B

12345678910111213141516171819202122232425262728
  1. #ifndef _CRIS_DELAY_H
  2. #define _CRIS_DELAY_H
  3. /*
  4. * Copyright (C) 1998-2002 Axis Communications AB
  5. *
  6. * Delay routines, using a pre-computed "loops_per_second" value.
  7. */
  8. #include <arch/delay.h>
  9. /* Use only for very small delays ( < 1 msec). */
  10. extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */
  11. /* May be defined by arch/delay.h. */
  12. #ifndef udelay
  13. static inline void udelay(unsigned long usecs)
  14. {
  15. __delay(usecs * loops_per_usec);
  16. }
  17. #endif
  18. #endif /* defined(_CRIS_DELAY_H) */