From 5e0b8d508ed51004bd836384293be00950ee62c9 Mon Sep 17 00:00:00 2001 From: Pasha Date: Tue, 20 Feb 2024 18:49:50 +0000 Subject: init gnumach copy --- linux/src/include/asm-i386/delay.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 linux/src/include/asm-i386/delay.h (limited to 'linux/src/include/asm-i386/delay.h') diff --git a/linux/src/include/asm-i386/delay.h b/linux/src/include/asm-i386/delay.h new file mode 100644 index 0000000..2166c4c --- /dev/null +++ b/linux/src/include/asm-i386/delay.h @@ -0,0 +1,18 @@ +#ifndef _I386_DELAY_H +#define _I386_DELAY_H + +/* + * Copyright (C) 1993 Linus Torvalds + * + * Delay routines calling functions in arch/i386/lib/delay.c + */ + +extern void __udelay(unsigned long usecs); +extern void __const_udelay(unsigned long usecs); +extern void __delay(unsigned long loops); + +#define udelay(n) (__builtin_constant_p(n) ? \ + __const_udelay((n) * 0x10c6ul) : \ + __udelay(n)) + +#endif /* defined(_I386_DELAY_H) */ -- cgit v1.2.1