Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarian <32921628+Dazza0@users.noreply.github.com>2023-10-23 10:20:24 +0300
committerGitHub <noreply@github.com>2023-10-23 10:20:24 +0300
commitfc7aca7ff239ac988b7cb28a73ca6c66f4efcb84 (patch)
tree17974c3d9ea8680bfda3e2a93dc0c6d3cf9b64a3
parent9f4a0e308b311e9fa7ae112a74a27b62a2bbb138 (diff)
Rename CPU to Core (#849)
This commit renames "CPU" to "Core" for any public facing API for consistency with other SMP related APIs (e.g., "configNUMBER_OF_CORES"). Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
-rw-r--r--include/FreeRTOS.h8
-rw-r--r--include/task.h2
-rw-r--r--tasks.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/include/FreeRTOS.h b/include/FreeRTOS.h
index ba7d083a6..b8153ac64 100644
--- a/include/FreeRTOS.h
+++ b/include/FreeRTOS.h
@@ -2120,12 +2120,12 @@
#define traceRETURN_xTaskGetCurrentTaskHandle( xReturn )
#endif
-#ifndef traceENTER_xTaskGetCurrentTaskHandleCPU
- #define traceENTER_xTaskGetCurrentTaskHandleCPU( xCoreID )
+#ifndef traceENTER_xTaskGetCurrentTaskHandleForCore
+ #define traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID )
#endif
-#ifndef traceRETURN_xTaskGetCurrentTaskHandleCPU
- #define traceRETURN_xTaskGetCurrentTaskHandleCPU( xReturn )
+#ifndef traceRETURN_xTaskGetCurrentTaskHandleForCore
+ #define traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn )
#endif
#ifndef traceENTER_xTaskGetSchedulerState
diff --git a/include/task.h b/include/task.h
index b6850e8bd..c369f0c1d 100644
--- a/include/task.h
+++ b/include/task.h
@@ -3539,7 +3539,7 @@ TaskHandle_t xTaskGetCurrentTaskHandle( void ) PRIVILEGED_FUNCTION;
/*
* Return the handle of the task running on specified core.
*/
-TaskHandle_t xTaskGetCurrentTaskHandleCPU( BaseType_t xCoreID ) PRIVILEGED_FUNCTION;
+TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID ) PRIVILEGED_FUNCTION;
/*
* Shortcut used by the queue implementation to prevent unnecessary call to
diff --git a/tasks.c b/tasks.c
index e941907cf..d74a4ccac 100644
--- a/tasks.c
+++ b/tasks.c
@@ -6425,18 +6425,18 @@ static void prvResetNextTaskUnblockTime( void )
return xReturn;
}
- TaskHandle_t xTaskGetCurrentTaskHandleCPU( BaseType_t xCoreID )
+ TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID )
{
TaskHandle_t xReturn = NULL;
- traceENTER_xTaskGetCurrentTaskHandleCPU( xCoreID );
+ traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID );
if( taskVALID_CORE_ID( xCoreID ) != pdFALSE )
{
xReturn = pxCurrentTCBs[ xCoreID ];
}
- traceRETURN_xTaskGetCurrentTaskHandleCPU( xReturn );
+ traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn );
return xReturn;
}