You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2023/11/16 05:35:54 UTC

(nuttx) branch master updated: arch/imx6: Replace cpu_start_t with start_t

This is an automated email from the ASF dual-hosted git repository.

masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ca3e805b2 arch/imx6: Replace cpu_start_t with start_t
5ca3e805b2 is described below

commit 5ca3e805b28fb574ab110487a0c93f5fb51e547d
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Nov 15 11:50:32 2023 +0800

    arch/imx6: Replace cpu_start_t with start_t
    
    avoid the unnecessary typedef
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/imx6/imx_cpuboot.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/arch/arm/src/imx6/imx_cpuboot.c b/arch/arm/src/imx6/imx_cpuboot.c
index 68feec66ef..4ccab60e3f 100644
--- a/arch/arm/src/imx6/imx_cpuboot.c
+++ b/arch/arm/src/imx6/imx_cpuboot.c
@@ -28,6 +28,7 @@
 #include <assert.h>
 
 #include <nuttx/arch.h>
+#include <nuttx/sched.h>
 #include <arch/irq.h>
 
 #include "arm_internal.h"
@@ -41,12 +42,6 @@
 
 #ifdef CONFIG_SMP
 
-/****************************************************************************
- * Private Types
- ****************************************************************************/
-
-typedef void (*cpu_start_t)(void);
-
 /****************************************************************************
  * Private Data
  ****************************************************************************/
@@ -95,7 +90,7 @@ static const uintptr_t g_cpu_gpr[CONFIG_SMP_NCPUS] =
 #endif
 };
 
-static const cpu_start_t g_cpu_boot[CONFIG_SMP_NCPUS] =
+static const start_t g_cpu_boot[CONFIG_SMP_NCPUS] =
 {
   0,
 #if CONFIG_SMP_NCPUS > 1
@@ -200,7 +195,7 @@ void imx_cpu_disable(void)
 
 void imx_cpu_enable(void)
 {
-  cpu_start_t bootaddr;
+  start_t bootaddr;
   uintptr_t regaddr;
   uint32_t regval;
   int cpu;