diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chqueues.c | 2 | ||||
-rw-r--r-- | src/chschd.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/chqueues.c b/src/chqueues.c index 2615d36b7..6dcc61af6 100644 --- a/src/chqueues.c +++ b/src/chqueues.c @@ -123,7 +123,7 @@ msg_t chIQGet(Queue *qp) { * a byte arrives in the queue or the specified time expires.
*
* @param qp pointer to a @p Queue structure
- * @param time the number of ticks before the operation timouts
+ * @param time the number of ticks before the operation timeouts
* @return A byte value from the queue.
* @retval Q_TIMEOUT if the specified time expired.
* @retval Q_RESET if the queue was reset.
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; } /** |