dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/cris/include/asm/delay.h

28 lines
498 B
C

#ifndef _CRIS_DELAY_H
#define _CRIS_DELAY_H
/*
* Copyright (C) 1998-2002 Axis Communications AB
*
* Delay routines, using a pre-computed "loops_per_second" value.
*/
#include <arch/delay.h>
/* Use only for very small delays ( < 1 msec). */
extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */
/* May be defined by arch/delay.h. */
#ifndef udelay
static inline void udelay(unsigned long usecs)
{
__delay(usecs * loops_per_usec);
}
#endif
#endif /* defined(_CRIS_DELAY_H) */