diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-07-25 14:32:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-07-25 14:32:39 +0000 |
commit | eb9b4efd31018e4949e3cc09830a5ecfc1304664 (patch) | |
tree | 99b3f334b22c57eed4147463e769b2296b5c169d /src/chinit.c | |
parent | 266206d33a7626341f3a206d730cb842dd39d2bc (diff) | |
download | ChibiOS-eb9b4efd31018e4949e3cc09830a5ecfc1304664.tar.gz ChibiOS-eb9b4efd31018e4949e3cc09830a5ecfc1304664.tar.bz2 ChibiOS-eb9b4efd31018e4949e3cc09830a5ecfc1304664.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@353 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chinit.c')
-rw-r--r-- | src/chinit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chinit.c b/src/chinit.c index b8d36a6e5..2aee810a0 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -70,10 +70,12 @@ 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 |