Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / cris / include / asm / delay.h
blob2dfdb13e1a9e6125277e86db362c4e8b09b452a6
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _CRIS_DELAY_H
3 #define _CRIS_DELAY_H
5 /*
6 * Copyright (C) 1998-2002 Axis Communications AB
8 * Delay routines, using a pre-computed "loops_per_second" value.
9 */
11 #include <arch/delay.h>
13 /* Use only for very small delays ( < 1 msec). */
15 extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */
17 /* May be defined by arch/delay.h. */
18 #ifndef udelay
19 static inline void udelay(unsigned long usecs)
21 __delay(usecs * loops_per_usec);
23 #endif
25 #endif /* defined(_CRIS_DELAY_H) */