mm/iob: IOB free notifier should accept the work queue ID as a paramter. The notification may need to run on either the high- or low- priority work queue. sched/work: Change the default priority of the low-priority work queue to 100.

This commit is contained in:
Gregory Nutt
2018-09-11 08:49:39 -06:00
parent 91aa26774b
commit 11a635dcb3
9 changed files with 37 additions and 36 deletions
+4 -3
View File
@@ -58,10 +58,11 @@
*
* Description:
* Set up to perform a callback to the worker function when an IOB is
* available. The worker function will execute on the high priority
* available. The worker function will execute on the selected priority
* worker thread.
*
* Input Parameters:
* qid - Selects work queue. Must be HPWORK or LPWORK.
* worker - The worker function to execute on the high priority work queue
* when the event occurs.
* arg - A user-defined argument that will be available to the worker
@@ -77,7 +78,7 @@
*
****************************************************************************/
int iob_notifier_setup(worker_t worker, FAR void *arg)
int iob_notifier_setup(int qid, worker_t worker, FAR void *arg)
{
struct work_notifier_s info;
@@ -95,7 +96,7 @@ int iob_notifier_setup(worker_t worker, FAR void *arg)
/* Otherwise, this is just a simple wrapper around work_notifer_setup(). */
info.evtype = WORK_IOB_AVAIL;
info.wqueue = HPWORK;
info.qid = qid;
info.qualifier = NULL;
info.arg = arg;
info.worker = worker;