Skip to content

Commit

Permalink
arch/imx6: Replace cpu_start_t with start_t
Browse files Browse the repository at this point in the history
avoid the unnecessary typedef

Signed-off-by: Xiang Xiao <[email protected]>
  • Loading branch information
xiaoxiang781216 authored and masayuki2009 committed Nov 16, 2023
1 parent e2627d4 commit 5ca3e80
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions arch/arm/src/imx6/imx_cpuboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <assert.h>

#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include <arch/irq.h>

#include "arm_internal.h"
Expand All @@ -41,12 +42,6 @@

#ifdef CONFIG_SMP

/****************************************************************************
* Private Types
****************************************************************************/

typedef void (*cpu_start_t)(void);

/****************************************************************************
* Private Data
****************************************************************************/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5ca3e80

Please sign in to comment.