aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chschd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-09-24 18:05:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-09-24 18:05:46 +0000
commit79b466c6f867a30e38ea2164a4f96b5ddba3d9e2 (patch)
tree965ff6ff19c957582e30591cc5a27265507e834b /os/kernel/src/chschd.c
parent5b3fec0235acc100600054917d9d393db189b5cb (diff)
downloadChibiOS-79b466c6f867a30e38ea2164a4f96b5ddba3d9e2.tar.gz
ChibiOS-79b466c6f867a30e38ea2164a4f96b5ddba3d9e2.tar.bz2
ChibiOS-79b466c6f867a30e38ea2164a4f96b5ddba3d9e2.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2188 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chschd.c')
-rw-r--r--os/kernel/src/chschd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/kernel/src/chschd.c b/os/kernel/src/chschd.c
index ff10dbe2d..9adf656ff 100644
--- a/os/kernel/src/chschd.c
+++ b/os/kernel/src/chschd.c
@@ -129,12 +129,12 @@ void chSchGoSleepS(tstate_t newstate) {
static void wakeup(void *p) {
Thread *tp = (Thread *)p;
-#if CH_USE_SEMAPHORES || (CH_USE_CONDVARS && CH_USE_CONDVARS_TIMEOUT)
switch (tp->p_state) {
case THD_STATE_READY:
/* Handling the special case where the thread has been made ready by
another thread with higher priority.*/
return;
+#if CH_USE_SEMAPHORES || (CH_USE_CONDVARS && CH_USE_CONDVARS_TIMEOUT)
#if CH_USE_SEMAPHORES
case THD_STATE_WTSEM:
chSemFastSignalI((Semaphore *)tp->p_u.wtobjp);
@@ -145,8 +145,8 @@ static void wakeup(void *p) {
#endif
/* States requiring dequeuing.*/
dequeue(tp);
- }
#endif
+ }
tp->p_u.rdymsg = RDY_TIMEOUT;
chSchReadyI(tp);
}