@@ -1552,7 +1552,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
1552
1552
/* The priority of a task other than the currently
1553
1553
* running task is being raised. Is the priority being
1554
1554
* raised above that of the running task? */
1555
- if ( uxNewPriority >= pxCurrentTCB -> uxPriority )
1555
+ if ( uxNewPriority > pxCurrentTCB -> uxPriority )
1556
1556
{
1557
1557
xYieldRequired = pdTRUE ;
1558
1558
}
@@ -1845,7 +1845,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
1845
1845
prvAddTaskToReadyList ( pxTCB );
1846
1846
1847
1847
/* A higher priority task may have just been resumed. */
1848
- if ( pxTCB -> uxPriority >= pxCurrentTCB -> uxPriority )
1848
+ if ( pxTCB -> uxPriority > pxCurrentTCB -> uxPriority )
1849
1849
{
1850
1850
/* This yield may not cause the task just resumed to run,
1851
1851
* but will leave the lists in the correct state for the
@@ -1913,7 +1913,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
1913
1913
{
1914
1914
/* Ready lists can be accessed so move the task from the
1915
1915
* suspended list to the ready list directly. */
1916
- if ( pxTCB -> uxPriority >= pxCurrentTCB -> uxPriority )
1916
+ if ( pxTCB -> uxPriority > pxCurrentTCB -> uxPriority )
1917
1917
{
1918
1918
xYieldRequired = pdTRUE ;
1919
1919
@@ -2203,9 +2203,9 @@ BaseType_t xTaskResumeAll( void )
2203
2203
listREMOVE_ITEM ( & ( pxTCB -> xStateListItem ) );
2204
2204
prvAddTaskToReadyList ( pxTCB );
2205
2205
2206
- /* If the moved task has a priority higher than or equal to
2207
- * the current task then a yield must be performed. */
2208
- if ( pxTCB -> uxPriority >= pxCurrentTCB -> uxPriority )
2206
+ /* If the moved task has a priority higher than the current
2207
+ * task then a yield must be performed. */
2208
+ if ( pxTCB -> uxPriority > pxCurrentTCB -> uxPriority )
2209
2209
{
2210
2210
xYieldPending = pdTRUE ;
2211
2211
}
0 commit comments