arch/imx6: Replace cpu_start_t with start_t

avoid the unnecessary typedef

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-11-15 11:50:32 +08:00 committed by Masayuki Ishikawa
parent e2627d4558
commit 5ca3e805b2

View file

@ -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;