mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Update some Kconfig comments; Add a upper limit on the lower priority worker thread for priority inheritance
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user