From 2015fd76e28a5a4c36743f6891a5c9251e06b2b4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 10 Oct 2014 08:47:41 -0600 Subject: [PATCH] Fix some conditional logic in last work queue repartitioning change --- sched/wqueue/kwork_cancel.c | 2 +- sched/wqueue/kwork_queue.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sched/wqueue/kwork_cancel.c b/sched/wqueue/kwork_cancel.c index 92e70e20d4..e8a44acf29 100644 --- a/sched/wqueue/kwork_cancel.c +++ b/sched/wqueue/kwork_cancel.c @@ -80,7 +80,7 @@ * by calling work_queue() again. * * Input parameters: - * qid - The work queue ID (must be USRWORK) + * qid - The work queue ID (must be HPWORK or LPWORK) * work - The previously queue work structure to cancel * * Returned Value: diff --git a/sched/wqueue/kwork_queue.c b/sched/wqueue/kwork_queue.c index 357b9fe840..9a979f9470 100644 --- a/sched/wqueue/kwork_queue.c +++ b/sched/wqueue/kwork_queue.c @@ -101,8 +101,6 @@ * ****************************************************************************/ -#if defined(CONFIG_SCHED_USRWORK) && !defined(__KERNEL__) - int work_queue(int qid, FAR struct work_s *work, worker_t worker, FAR void *arg, uint32_t delay) { @@ -129,5 +127,4 @@ int work_queue(int qid, FAR struct work_s *work, worker_t worker, } } -#endif /* CONFIG_SCHED_USRWORK && !__KERNEL__ */ #endif /* CONFIG_SCHED_WORKQUEUE */