chao.an 102a6357ca Revert "sched: Remove a redundant critical section"
There is a potential problem that can lead to deadlock at
condition wait, if the timeout of watchdog is a very small value
(1 tick ?), the timer interrupt will come before the nxsem_wait()

Revert "sched: pthread: Remove a redundant critical section in pthread_condclockwsait.c"
Revert "sched: semaphore: Remove a redundant critical section in nxsem_clockwait()"
Revert "sched: semaphore: Remove a redundant critical section in nxsem_tickwait()"

This reverts commit 7758f3dcb1dcf61e9280aaba6cc98668e6c3bc65.
This reverts commit 2976bb212e7e49d8c9c303f85fc3b83e07cd0010.
This reverts commit 65dec5d10ac57abc9a15aadf076d693ab5208f69.

Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-13 14:38:44 +09:00
..
2021-02-09 01:21:53 -08:00