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