1 /* SPDX-License-Identifier: GPL-2.0 */
4 #include <asm-generic/delay.h>
5 #include <linux/time-internal.h>
7 static inline void um_ndelay(unsigned long nsecs
)
9 if (time_travel_mode
== TT_MODE_INFCPU
||
10 time_travel_mode
== TT_MODE_EXTERNAL
) {
11 time_travel_ndelay(nsecs
);
17 #define ndelay um_ndelay
19 static inline void um_udelay(unsigned long usecs
)
21 if (time_travel_mode
== TT_MODE_INFCPU
||
22 time_travel_mode
== TT_MODE_EXTERNAL
) {
23 time_travel_ndelay(1000 * usecs
);
29 #define udelay um_udelay
30 #endif /* __UM_DELAY_H */