apply new tick overflow patch from Charlie

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1117 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com
2010-11-25 23:44:58 +00:00
parent 087c066735
commit 5597823b83
2 changed files with 44 additions and 124 deletions
+1 -8
View File
@@ -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();