Commit cba30158 authored by Petr Kocian's avatar Petr Kocian
Browse files

[fix] Removed call to scheduler task after task creation

parent 26a18bd7
......@@ -654,7 +654,6 @@ void vSchedulerPeriodicTaskCreate( TaskFunction_t pvTaskCode, const char *pcName
{
taskENTER_CRITICAL();
SchedTCB_t *pxNewTCB;
SchedTCB_t *pxEarliestDeadlineTCB;
#if( schedUSE_TCB_ARRAY == 1 )
BaseType_t xIndex = prvFindEmptyElementIndexTCB();
configASSERT( xTaskCounter < schedMAX_NUMBER_OF_PERIODIC_TASKS );
......@@ -712,13 +711,6 @@ SchedTCB_t *pxEarliestDeadlineTCB;
vTaskSetThreadLocalStoragePointer( pxNewTCB->pxTaskHandle, sched_TLS_INDEX, pxNewTCB );
ListItem_t *pxTCBListItem = listGET_HEAD_ENTRY( pxTCBReadyList );
pxEarliestDeadlineTCB = listGET_LIST_ITEM_OWNER( pxTCBListItem );
if(pxEarliestDeadlineTCB == pxNewTCB)
{
vSchedulerReadyTrace(pxNewTCB->pxTaskHandle);
}
taskEXIT_CRITICAL();
}
......@@ -1505,7 +1497,6 @@ SchedTCB_t *pxShortestTaskPointer, *pxTCB;
{
taskENTER_CRITICAL();
SchedTCB_t *pxNewTCB;
SchedTCB_t *pxEarliestDeadlineTCB;
#if( schedUSE_TCB_ARRAY == 1 )
BaseType_t xIndex = prvFindEmptyElementIndexTCB();
......@@ -1551,13 +1542,6 @@ SchedTCB_t *pxShortestTaskPointer, *pxTCB;
vTaskSetThreadLocalStoragePointer( pxNewTCB->pxTaskHandle, sched_TLS_INDEX, pxNewTCB );
ListItem_t *pxTCBListItem = listGET_HEAD_ENTRY( pxTCBReadyList );
pxEarliestDeadlineTCB = listGET_LIST_ITEM_OWNER( pxTCBListItem );
if(pxEarliestDeadlineTCB == pxNewTCB)
{
vSchedulerReadyTrace(pxNewTCB->pxTaskHandle);
}
taskEXIT_CRITICAL();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment