]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/cris/include/asm/delay.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / cris / include / asm / delay.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
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
556dcee7 11#include <arch/delay.h>
1da177e4
LT
12
13/* Use only for very small delays ( < 1 msec). */
14
15extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */
16
b43890af
JN
17/* May be defined by arch/delay.h. */
18#ifndef udelay
d9b5444e 19static inline void udelay(unsigned long usecs)
1da177e4
LT
20{
21 __delay(usecs * loops_per_usec);
22}
b43890af 23#endif
1da177e4
LT
24
25#endif /* defined(_CRIS_DELAY_H) */
26
27
28