| 553 | |
| 554 | #ifdef CONFIG_SCHED_HPWORK |
| 555 | int work_start_highpri(void) |
| 556 | { |
| 557 | /* Start the high-priority, kernel mode worker thread(s) */ |
| 558 | |
| 559 | sinfo("Starting high-priority kernel worker thread(s)\n"); |
| 560 | |
| 561 | #ifdef SCHED_HPWORKSTACKSECTION |
| 562 | static uint8_t hp_work_stack[CONFIG_SCHED_HPNTHREADS] |
| 563 | [CONFIG_SCHED_HPWORKSTACKSIZE] |
| 564 | locate_data(CONFIG_SCHED_HPWORKSTACKSECTION); |
| 565 | |
| 566 | return work_thread_create(HPWORKNAME, |
| 567 | CONFIG_SCHED_HPWORKPRIORITY, |
| 568 | hp_work_stack, |
| 569 | CONFIG_SCHED_HPWORKSTACKSIZE, |
| 570 | (FAR struct kwork_wqueue_s *)&g_hpwork); |
| 571 | #else |
| 572 | return work_thread_create(HPWORKNAME, CONFIG_SCHED_HPWORKPRIORITY, NULL, |
| 573 | CONFIG_SCHED_HPWORKSTACKSIZE, |
| 574 | (FAR struct kwork_wqueue_s *)&g_hpwork); |
| 575 | #endif |
| 576 | } |
| 577 | #endif /* CONFIG_SCHED_HPWORK */ |
| 578 | |
| 579 | /**************************************************************************** |
no test coverage detected