Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-s390/delay.h |
| 3 | * |
| 4 | * S390 version |
| 5 | * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation |
| 6 | * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) |
| 7 | * |
| 8 | * Derived from "include/asm-i386/delay.h" |
| 9 | * Copyright (C) 1993 Linus Torvalds |
| 10 | * |
| 11 | * Delay routines calling functions in arch/s390/lib/delay.c |
| 12 | */ |
| 13 | |
| 14 | #ifndef _S390_DELAY_H |
| 15 | #define _S390_DELAY_H |
| 16 | |
Heiko Carstens | 0cd6a40 | 2009-10-06 10:34:05 +0200 | [diff] [blame] | 17 | extern void __udelay(unsigned long long usecs); |
| 18 | extern void udelay_simple(unsigned long long usecs); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | extern void __delay(unsigned long loops); |
| 20 | |
Heiko Carstens | 0cd6a40 | 2009-10-06 10:34:05 +0200 | [diff] [blame] | 21 | #define udelay(n) __udelay((unsigned long long) (n)) |
| 22 | #define mdelay(n) __udelay((unsigned long long) (n) * 1000) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
| 24 | #endif /* defined(_S390_DELAY_H) */ |