diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-27 11:43:28 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-27 11:43:28 +0000 |
commit | a134cd919ea3e6fee591bc29d360f3da74f46a8b (patch) | |
tree | 621c6bd96434a06ce6fd517934f1db6255187c60 /src/chschd.c | |
parent | a62cb84475bb6212554b847751a409a6183f05a0 (diff) | |
download | ChibiOS-a134cd919ea3e6fee591bc29d360f3da74f46a8b.tar.gz ChibiOS-a134cd919ea3e6fee591bc29d360f3da74f46a8b.tar.bz2 ChibiOS-a134cd919ea3e6fee591bc29d360f3da74f46a8b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@115 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chschd.c')
-rw-r--r-- | src/chschd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chschd.c b/src/chschd.c index fe42f7ccc..c4b5df5a9 100644 --- a/src/chschd.c +++ b/src/chschd.c @@ -88,7 +88,7 @@ void chSchGoSleepS(t_tstate newstate) { (otp = currp)->p_state = newstate;
(currp = fifo_remove(&rlist.r_queue))->p_state = PRCURR;
rlist.r_preempt = CH_TIME_QUANTUM;
-#ifdef CH_USE_DEBUG
+#ifdef CH_USE_TRACE
chDbgTrace(otp, currp);
#endif
chSysSwitchI(&otp->p_ctx, &currp->p_ctx);
@@ -115,7 +115,7 @@ void chSchWakeupS(Thread *ntp, t_msg msg) { (currp = ntp)->p_state = PRCURR;
ntp->p_rdymsg = msg;
rlist.r_preempt = CH_TIME_QUANTUM;
-#ifdef CH_USE_DEBUG
+#ifdef CH_USE_TRACE
chDbgTrace(otp, ntp);
#endif
chSysSwitchI(&otp->p_ctx, &ntp->p_ctx);
|