walnux/sched/wqueue
ouyangxiangzhen fb592064cb sched: Improved the wdog and wq list insertion.
For the watchdog list and the workqueue list, we wonder whether the list head has changed after the insertion. In the original implementation, we have to access the list->next field and compare the result to the currently inserted node. In this commit, we mark the list head before the insertion and comparing the current traversed node with the list head we marked, which can avoid accessing the list->next and is more cache-friendly.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2025-05-07 02:02:10 +08:00
..
CMakeLists.txt sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
kwork_cancel.c sched/wqueue: Refactor delayed and periodical workqueue. 2025-05-07 02:02:10 +08:00
kwork_inherit.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
kwork_notifier.c Revert "No need to call sched_lock explicitly after call spin_lock_irqsave, since it will be called in func spin_lock_irqsave." 2025-02-13 14:15:43 +08:00
kwork_queue.c sched/wqueue: Refactor delayed and periodical workqueue. 2025-05-07 02:02:10 +08:00
kwork_thread.c sched/wqueue: Refactor delayed and periodical workqueue. 2025-05-07 02:02:10 +08:00
Make.defs sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
wqueue.h sched: Improved the wdog and wq list insertion. 2025-05-07 02:02:10 +08:00