diff --git a/sched/wqueue/wqueue.h b/sched/wqueue/wqueue.h index 518e8a38fb..7b4fee28e1 100644 --- a/sched/wqueue/wqueue.h +++ b/sched/wqueue/wqueue.h @@ -76,7 +76,7 @@ struct kworker_s volatile bool busy; /* True: Worker is not available */ }; -/* This structure defines the state of one high-priority work queue */ +/* This structure defines the state of one kernel-mode work queue */ struct kwork_wqueue_s { @@ -85,22 +85,24 @@ struct kwork_wqueue_s struct kworker_s worker[1]; /* Describes a worker thread */ }; - /* This structure defines the state of one high-priority work queue. This * structure must be cast-compatible with kwork_wqueue_s. */ +#ifdef CONFIG_SCHED_HPWORK struct hp_wqueue_s { uint32_t delay; /* Delay between polling cycles (ticks) */ struct dq_queue_s q; /* The queue of pending work */ struct kworker_s worker[1]; /* Describes the single high priority worker */ }; +#endif /* This structure defines the state of one high-priority work queue. This * structure must be cast compatible with kwork_wqueue_s */ +#ifdef CONFIG_SCHED_LPWORK struct lp_wqueue_s { uint32_t delay; /* Delay between polling cycles (ticks) */ @@ -110,6 +112,7 @@ struct lp_wqueue_s struct kworker_s worker[CONFIG_SCHED_LPNTHREADS]; }; +#endif /**************************************************************************** * Public Data