mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-17 23:30:26 -05:00
[Fix] Reset correct priority on disinherit timeout (#1338)
This commit corrects vTaskPriorityDisinheritAfterTimeout to reset the previously inherited priority when the task disiheriting timeout was the only task at that priority. Without this change the ready list for the inherited priority will remain set when no task is ready at that priority. This can have consequences later as the ready priority flags are assumed to be accurate. Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
26f9a2fdd3
commit
1dbc77697f
1 changed files with 1 additions and 1 deletions
2
tasks.c
2
tasks.c
|
|
@ -6916,7 +6916,7 @@ static void prvResetNextTaskUnblockTime( void )
|
||||||
/* It is known that the task is in its ready list so
|
/* It is known that the task is in its ready list so
|
||||||
* there is no need to check again and the port level
|
* there is no need to check again and the port level
|
||||||
* reset macro can be called directly. */
|
* reset macro can be called directly. */
|
||||||
portRESET_READY_PRIORITY( pxTCB->uxPriority, uxTopReadyPriority );
|
portRESET_READY_PRIORITY( uxPriorityUsedOnEntry, uxTopReadyPriority );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue