summaryrefslogtreecommitdiff
path: root/src/clock.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-11-25 23:44:58 +0000
committer[email protected] <[email protected]>2010-11-25 23:44:58 +0000
commit5597823b83ec61e13f8e306a92b221f3a7f44681 (patch)
treefcf06544390269693932f1045d44d72221a68613 /src/clock.c
parent087c06673508785d83f479aa32b1116608f61a96 (diff)
apply new tick overflow patch from Charlie
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1117 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/clock.c')
-rw-r--r--src/clock.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/clock.c b/src/clock.c
index ac45d4fad7..9203fc57ed 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -60,14 +60,7 @@ void rt_tick_increase()
struct rt_thread* thread;
/* increase the global tick */
- if (rt_tick == RT_TICK_MAX)
- {
- /* switch to long timer list */
- rt_timer_switch();
-
- rt_tick = 0;
- }
- else ++ rt_tick;
+ ++ rt_tick;
/* check time slice */
thread = rt_thread_self();