blob: 1c481be917c05e6a0653033544c81ba789f9b5a7 [file] [log] [blame]
Eric Biederman8ca8d762003-04-22 19:02:15 +00001#ifndef DELAY_H
2#define DELAY_H
Stefan Reinauerde3206a2010-02-22 06:09:43 +00003
Kyösti Mälkki5a157172019-07-01 10:12:45 +03004#include <stdint.h>
5
6#if CONFIG_UDELAY_LAPIC_FIXED_FSB != 0
7static inline u32 get_timer_fsb(void)
8{
9 return CONFIG_UDELAY_LAPIC_FIXED_FSB;
10}
11#else
12u32 get_timer_fsb(void);
13#endif
14
Stefan Reinauerde3206a2010-02-22 06:09:43 +000015void init_timer(void);
Stefan Reinauerde3206a2010-02-22 06:09:43 +000016
Lee Leahy0ca2a062017-03-06 18:01:04 -080017void udelay(unsigned int usecs);
18void mdelay(unsigned int msecs);
19void delay(unsigned int secs);
Eric Biederman8ca8d762003-04-22 19:02:15 +000020#endif /* DELAY_H */