Update some Kconfig comments; Add a upper limit on the lower priority worker thread for priority inheritance

This commit is contained in:
Gregory Nutt
2014-10-07 17:11:26 -06:00
parent 792e40f513
commit 7f36c4e97b
3 changed files with 109 additions and 9 deletions
+14
View File
@@ -78,6 +78,13 @@ void lpwork_boostpriority(uint8_t reqprio)
irqstate_t flags;
pid_t wpid;
/* Clip to the configured maximum priority */
if (reqprio > CONFIG_SCHED_LPWORKPRIOMAX)
{
reqprio = CONFIG_SCHED_LPWORKPRIOMAX;
}
/* Get the process ID of the low priority worker thread from the low
* priority work queue. Then get the TCB of the low priority worker
* thread from the process ID.
@@ -194,6 +201,13 @@ void lpwork_restorepriority(uint8_t reqprio)
int index;
int selected;
/* Clip to the configured maximum priority */
if (reqprio > CONFIG_SCHED_LPWORKPRIOMAX)
{
reqprio = CONFIG_SCHED_LPWORKPRIOMAX;
}
/* Get the process ID of the low priority worker thread from the low
* priority work queue. Then get the TCB of the low priority worker
* thread from the process ID.