xiaoxiang781216 commented on code in PR #18072:
URL: https://github.com/apache/nuttx/pull/18072#discussion_r2726666260
##########
sched/wqueue/kwork_thread.c:
##########
@@ -550,9 +558,21 @@ int work_start_highpri(void)
sinfo("Starting high-priority kernel worker thread(s)\n");
+#ifdef SCHED_HPWORKSTACKSECTION
+ static uint8_t hp_work_stack[CONFIG_SCHED_HPNTHREADS]
+ [CONFIG_SCHED_HPWORKSTACKSIZE]
Review Comment:
```suggestion
[CONFIG_SCHED_HPWORKSTACKSIZE]
```
##########
sched/wqueue/kwork_thread.c:
##########
@@ -578,9 +598,22 @@ int work_start_lowpri(void)
sinfo("Starting low-priority kernel worker thread(s)\n");
- return work_thread_create(LPWORKNAME, CONFIG_SCHED_LPWORKPRIORITY, NULL,
+#ifdef SCHED_LPWORKSTACKSECTION
+ static uint8_t lp_work_stack[CONFIG_SCHED_LPNTHREADS]
+ [CONFIG_SCHED_LPWORKSTACKSIZE]
Review Comment:
```suggestion
[CONFIG_SCHED_LPWORKSTACKSIZE]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]