aboutsummaryrefslogtreecommitdiffstats
path: root/src/chschd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-23 13:53:53 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-23 13:53:53 +0000
commitf2ced068fb80aa38326e1ef75eafdd5834e9017a (patch)
tree20d9ae80ab056ee26917d836c0c5c7f3371f66b8 /src/chschd.c
parentf851339621a3179ded94f8a27b30c9345896ccc5 (diff)
downloadChibiOS-f2ced068fb80aa38326e1ef75eafdd5834e9017a.tar.gz
ChibiOS-f2ced068fb80aa38326e1ef75eafdd5834e9017a.tar.bz2
ChibiOS-f2ced068fb80aa38326e1ef75eafdd5834e9017a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@107 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r--src/chschd.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/chschd.c b/src/chschd.c
index 7ad33d82f..65a1fd360 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -25,13 +25,7 @@
#include <ch.h>
/** @cond never*/
-
ReadyList rlist;
-
-#ifdef CH_USE_SYSTEMTIME
-volatile t_time stime;
-#endif
-
/** @endcond */
/**
@@ -44,7 +38,7 @@ void chSchInit(void) {
rlist.r_prio = ABSPRIO;
rlist.r_preempt = CH_TIME_QUANTUM;
#ifdef CH_USE_SYSTEMTIME
- stime = 0;
+ rlist.r_stime = 0;
#endif
}
@@ -193,7 +187,7 @@ void chSchTimerHandlerI(void) {
rlist.r_preempt--;
#ifdef CH_USE_SYSTEMTIME
- stime++;
+ rlist.r_stime++;
#endif
#ifdef CH_USE_VIRTUAL_TIMERS