mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
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:
+1
-8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user