Change behavior of chopstx_poll to correctly update *USEC_P.

This commit is contained in:
NIIBE Yutaka
2018-12-07 18:01:39 +09:00
parent 39683dbc5f
commit 1400e677e3
3 changed files with 37 additions and 13 deletions

View File

@@ -293,8 +293,8 @@ chx_request_preemption (uint16_t prio)
* AAPCS: ARM Architecture Procedure Call Standard
*
* Returns:
* 1 on wakeup by others.
* 0 on normal wakeup (timer expiration, lock aquirement).
* >= 1 on wakeup by others, value means ticks remained for sleep.
* 0 on normal wakeup (timer expiration, lock acquirement).
* -1 on cancellation.
*/
static uintptr_t __attribute__ ((naked, noinline))