blob: 327ad4df1bb8efe0b21b86197b16bd1002b4d065 [file] [log] [blame]
Martin Roth239b5df2022-07-26 22:18:26 -06001/* SPDX-License-Identifier: GPL-2.0-only */
2
Eric Biederman8ca8d762003-04-22 19:02:15 +00003#ifndef DELAY_H
4#define DELAY_H
Stefan Reinauerde3206a2010-02-22 06:09:43 +00005
Kyösti Mälkki5a157172019-07-01 10:12:45 +03006#include <stdint.h>
7
8#if CONFIG_UDELAY_LAPIC_FIXED_FSB != 0
9static inline u32 get_timer_fsb(void)
10{
11 return CONFIG_UDELAY_LAPIC_FIXED_FSB;
12}
13#else
14u32 get_timer_fsb(void);
15#endif
16
Stefan Reinauerde3206a2010-02-22 06:09:43 +000017void init_timer(void);
Stefan Reinauerde3206a2010-02-22 06:09:43 +000018
Lee Leahy0ca2a062017-03-06 18:01:04 -080019void udelay(unsigned int usecs);
20void mdelay(unsigned int msecs);
21void delay(unsigned int secs);
Eric Biederman8ca8d762003-04-22 19:02:15 +000022#endif /* DELAY_H */