diff options
-rw-r--r-- | firmware/export/system.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 3c161a1e24..de1672ae8e 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -39,8 +39,8 @@ extern unsigned int ipod_hw_rev; | |||
39 | 39 | ||
40 | static inline void udelay(unsigned usecs) | 40 | static inline void udelay(unsigned usecs) |
41 | { | 41 | { |
42 | unsigned start = USEC_TIMER; | 42 | unsigned stop = USEC_TIMER + usecs; |
43 | while ((USEC_TIMER - start) < usecs); | 43 | while (TIME_AFTER(USEC_TIMER, stop)); |
44 | } | 44 | } |
45 | 45 | ||
46 | unsigned int current_core(void); | 46 | unsigned int current_core(void); |