Automatically pin no-cpu-affinity task to a core when FPU is used

This commit is contained in:
Jeroen Domburg
2016-09-28 17:02:44 +08:00
parent a9502dffd3
commit b3309a03a3
3 changed files with 33 additions and 0 deletions

View File

@@ -3337,6 +3337,18 @@ TCB_t *pxNewTCB;
}
/*-----------------------------------------------------------*/
BaseType_t xTaskGetAffinity( TaskHandle_t xTask )
{
TCB_t *pxTCB;
UBaseType_t uxReturn;
pxTCB = prvGetTCBFromHandle( xTask );
return pxTCB->xCoreID;
}
/*-----------------------------------------------------------*/
#if ( configUSE_TRACE_FACILITY == 1 )
static UBaseType_t prvListTaskWithinSingleList( TaskStatus_t *pxTaskStatusArray, List_t *pxList, eTaskState eState )