delay.h 442 B

123456789101112131415161718192021222324
  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 <asm/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. static inline void udelay(unsigned long usecs)
  12. {
  13. __delay(usecs * loops_per_usec);
  14. }
  15. #endif /* defined(_CRIS_DELAY_H) */