nuttx/sched/wqueue
pangzhen1 b4eb08ffd6 sched/wqueue: Align hp_work_stack/lp_work_stack
Ensure each stack is properly aligned by rounding up the stack size.
This is critical when CONFIG_SCHED_HPNTHREADS > 1 or CONFIG_SCHED_LPNTHREADS > 1
to ensure all thread stacks start at properly aligned addresses.

Without proper alignment, subsequent threads' stacks may start at misaligned
addresses, which can cause:
- Hard faults on architectures with strict alignment requirements
- Performance degradation due to unaligned memory access
- TLS corruption when CONFIG_TLS_ALIGNED is enabled

Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
2026-02-12 16:24:39 +08:00
..
CMakeLists.txt sched/wqueue: add configuring the stack of an hpwork/lpwork as static 2026-01-27 10:18:24 +08:00
kwork_cancel.c sched/wqueue: Fix windows compilation errors. 2025-06-18 13:57:20 +02:00
kwork_inherit.c sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
kwork_notifier.c sched/wqueue: Replace spinlock/sched_lock with spin_lock_irqsave_nopreempt 2025-10-31 15:02:56 +08:00
kwork_queue.c sched/wqueue: Remove the work_queue_period. 2025-06-10 11:02:45 -03:00
kwork_thread.c sched/wqueue: Align hp_work_stack/lp_work_stack 2026-02-12 16:24:39 +08:00
Make.defs sched/wqueue: add configuring the stack of an hpwork/lpwork as static 2026-01-27 10:18:24 +08:00
wqueue.h sched/wqueue: Fix windows compilation errors. 2025-06-18 13:57:20 +02:00