nuttx/sched/wqueue
dongjiuzhu1 1f665e3498 sched/wqueue: fix issue about worker can't wake up thread before work_thread running
Problem:
AppBringup task in default priority 240 ->
board_late_initialize() ->
   some driver called work_queue() ->
      nxsem_post(&(wqueue).sem) failed because sem_count is 0

hp work_thread in default priority 224 ->
      nxsem_wait_uninterruptible(&wqueue->sem);

so hp_work_thread can't wake up, worker can't run immediately.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-04-19 02:50:04 +08:00
..
kwork_cancel.c sched/wqueue: Do as much work as possible in work_thread 2023-03-21 17:50:40 +02:00
kwork_inherit.c sched/semaphore: fix priority boost restoration for priority inheritance 2022-10-03 15:14:24 -03:00
kwork_notifier.c sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00
kwork_queue.c sched/wqueue: Do as much work as possible in work_thread 2023-03-21 17:50:40 +02:00
kwork_thread.c sched/wqueue: fix issue about worker can't wake up thread before work_thread running 2023-04-19 02:50:04 +08:00
Make.defs
wqueue.h sched/wqueue: Do as much work as possible in work_thread 2023-03-21 17:50:40 +02:00