aboutsummaryrefslogtreecommitdiffstats
path: root/src/chschd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chschd.c')
-rw-r--r--src/chschd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chschd.c b/src/chschd.c
index 944841dbe..629a659e0 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -100,6 +100,7 @@ void chSchGoSleepS(tstate_t newstate) {
static void wakeup(void *p) {
Thread *tp = (Thread *)p;
+#if CH_USE_SEMAPHORES || CH_USE_MUTEXES || CH_USE_CONDVARS
switch (tp->p_state) {
#if CH_USE_SEMAPHORES
case PRWTSEM:
@@ -110,10 +111,9 @@ static void wakeup(void *p) {
case PRWTMTX:
/* States requiring dequeuing. */
dequeue(tp);
- /* Falls into, intentional. */
- default:
- chSchReadyI(tp)->p_rdymsg = RDY_TIMEOUT;
}
+#endif
+ chSchReadyI(tp)->p_rdymsg = RDY_TIMEOUT;
}
/**