mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Revert select highest priority task
This commit is contained in:
parent
bade1a671a
commit
c774dfda63
3
tasks.c
3
tasks.c
|
@ -220,12 +220,11 @@
|
|||
#define taskSELECT_HIGHEST_PRIORITY_TASK() \
|
||||
do { \
|
||||
UBaseType_t uxTopPriority; \
|
||||
TCB_t * const pxConstCurrentTCB = prvGetCurrentTaskTCB(); \
|
||||
\
|
||||
/* Find the highest priority list that contains ready tasks. */ \
|
||||
portGET_HIGHEST_PRIORITY( uxTopPriority, uxTopReadyPriority ); \
|
||||
configASSERT( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ uxTopPriority ] ) ) > 0 ); \
|
||||
listGET_OWNER_OF_NEXT_ENTRY( pxConstCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \
|
||||
listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \
|
||||
} while( 0 )
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
Loading…
Reference in a new issue