summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-09 06:35:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-09 06:35:29 +0000
commit9f1c82e6cce29a748cdac00c51b33702558b6483 (patch)
tree5800c85625af95c5c37de9f337ac9e171a7cf7a1 /firmware
parentecf7d95086508f006bd8bfac4bd3a634a56bf652 (diff)
More accurate tick period calculation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2539 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index 745b5fba2e..6da8a1b057 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -139,7 +139,7 @@ static void tick_start(unsigned int interval_in_ms)
{
unsigned int count;
- count = FREQ / 1000 / 8 * interval_in_ms;
+ count = FREQ * interval_in_ms / 1000 / 8;
if(count > 0xffff)
{