diff options
| author | Bertrik Sikken <bertrik@sikken.nl> | 2009-10-18 15:50:30 +0000 |
|---|---|---|
| committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-10-18 15:50:30 +0000 |
| commit | d24d885aa42b5087d89f12dabad13895051da4e2 (patch) | |
| tree | 61584fe54660aab9a57bcb67c5a65cb888f4a38b /firmware/kernel.c | |
| parent | 1c64a4d3e0a4ae2f4eb537f00c7dc4372ca5df88 (diff) | |
| download | rockbox-d24d885aa42b5087d89f12dabad13895051da4e2.zip rockbox-d24d885aa42b5087d89f12dabad13895051da4e2.tar.gz rockbox-d24d885aa42b5087d89f12dabad13895051da4e2.tar.bz2 rockbox-d24d885aa42b5087d89f12dabad13895051da4e2.tar.xz | |
Use wrap-safe TIME_BEFORE/TIME_AFTER macros to compare times with current_time, instead of comparing them directly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23246 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
| -rw-r--r-- | firmware/kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c index 506725e..d076d6d 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c @@ -261,7 +261,7 @@ void sleep(int ticks) #elif defined(CREATIVE_ZVx) && defined(BOOTLOADER) /* hacky.. */ long sleep_ticks = current_tick + ticks + 1; - while (sleep_ticks > current_tick) + while (TIME_BEFORE(current_tick, sleep_ticks)) switch_thread(); #else disable_irq(); |