diff options
-rw-r--r-- | os/kernel/src/chcond.c | 4 | ||||
-rw-r--r-- | readme.txt | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/os/kernel/src/chcond.c b/os/kernel/src/chcond.c index f0ec50c4f..372b9b2f1 100644 --- a/os/kernel/src/chcond.c +++ b/os/kernel/src/chcond.c @@ -149,8 +149,8 @@ msg_t chCondWaitS(CondVar *cp) { "not owning a mutex");
mp = chMtxUnlockS();
- prio_insert(ctp, &cp->c_queue);
ctp->p_u.wtobjp = cp;
+ prio_insert(ctp, &cp->c_queue);
chSchGoSleepS(THD_STATE_WTCOND);
msg = ctp->p_u.rdymsg;
chMtxLockS(mp);
@@ -216,8 +216,8 @@ msg_t chCondWaitTimeoutS(CondVar *cp, systime_t time) { "not owning a mutex");
mp = chMtxUnlockS();
- prio_insert(ctp, &cp->c_queue);
ctp->p_u.wtobjp = cp;
+ prio_insert(ctp, &cp->c_queue);
chSchGoSleepTimeoutS(THD_STATE_WTCOND, time);
msg = ctp->p_u.rdymsg;
chMtxLockS(mp);
diff --git a/readme.txt b/readme.txt index 0aa929f46..ce517d483 100644 --- a/readme.txt +++ b/readme.txt @@ -55,6 +55,7 @@ *** 1.5.3 ***
- NEW: Enhanced the kernel size report to cover more cases.
+- OPT: Minor optimizations in the "compact" code path.
*** 1.5.2 ***
- FIX: Fixed wrong UART deinitialization sequence in LPC214x serial driver
|