From 902470d1c542735b989a727355744a974af43de4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 25 Oct 2008 09:34:25 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@481 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chinit.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/chinit.c') diff --git a/src/chinit.c b/src/chinit.c index 5d46808d8..d93ac1581 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -37,9 +37,7 @@ void chSysInit(void) { chSchInit(); chDbgInit(); -#ifdef CH_USE_VIRTUAL_TIMERS chVTInit(); -#endif #ifdef CH_USE_HEAP chHeapInit(); #endif @@ -69,19 +67,14 @@ void chSysInit(void) { * together with the \p CH_TIME_QUANTUM macro, the round robin interval. */ void chSysTimerHandlerI(void) { + #ifdef CH_USE_ROUNDROBIN /* running thread has not used up quantum yet? */ if (rlist.r_preempt > 0) /* decrement remaining quantum */ rlist.r_preempt--; #endif -#ifdef CH_USE_SYSTEMTIME - rlist.r_stime++; -#endif - -#ifdef CH_USE_VIRTUAL_TIMERS chVTDoTickI(); -#endif } /** @} */ -- cgit v1.2.3