Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 1 | #ifndef DELAY_H |
| 2 | #define DELAY_H |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 3 | |
Kyösti Mälkki | 5a15717 | 2019-07-01 10:12:45 +0300 | [diff] [blame] | 4 | #include <stdint.h> |
| 5 | |
| 6 | #if CONFIG_UDELAY_LAPIC_FIXED_FSB != 0 |
| 7 | static inline u32 get_timer_fsb(void) |
| 8 | { |
| 9 | return CONFIG_UDELAY_LAPIC_FIXED_FSB; |
| 10 | } |
| 11 | #else |
| 12 | u32 get_timer_fsb(void); |
| 13 | #endif |
| 14 | |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 15 | void init_timer(void); |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 16 | |
Lee Leahy | 0ca2a06 | 2017-03-06 18:01:04 -0800 | [diff] [blame] | 17 | void udelay(unsigned int usecs); |
| 18 | void mdelay(unsigned int msecs); |
| 19 | void delay(unsigned int secs); |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 20 | #endif /* DELAY_H */ |