Fix some missing conditional compilation that caused build failures in some configurations
This commit is contained in:
parent
0566eb45f7
commit
c0b703ac73
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue