From f2ced068fb80aa38326e1ef75eafdd5834e9017a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 23 Nov 2007 13:53:53 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@107 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chschd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/chschd.c') 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 /** @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 -- cgit v1.2.3