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)
downloadrockbox-9f1c82e6cce29a748cdac00c51b33702558b6483.tar.gz
rockbox-9f1c82e6cce29a748cdac00c51b33702558b6483.zip
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)
139{ 139{
140 unsigned int count; 140 unsigned int count;
141 141
142 count = FREQ / 1000 / 8 * interval_in_ms; 142 count = FREQ * interval_in_ms / 1000 / 8;
143 143
144 if(count > 0xffff) 144 if(count > 0xffff)
145 { 145 {