Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.14 28 lines 537 B view raw
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 15extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */ 16 17/* May be defined by arch/delay.h. */ 18#ifndef udelay 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