sched/init: Remove the duplicated tcb flag/cpu setting in nx_smp_start
The same thing is already done in nx_start
This commit is contained in:
parent
934f468e4a
commit
2b5538d0e8
|
@ -55,24 +55,6 @@
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Types
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
struct nx_tcballoc_s
|
|
||||||
{
|
|
||||||
struct task_tcb_s tcb; /* IDLE task TCB */
|
|
||||||
FAR char *idleargv[2]; /* Argument list */
|
|
||||||
};
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#if CONFIG_TASK_NAME_SIZE < 1
|
|
||||||
static const char g_idlename[] = "CPUn Idle"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -219,14 +201,6 @@ int nx_smp_start(void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
up_initial_state(tcb);
|
up_initial_state(tcb);
|
||||||
|
|
||||||
/* Set the task flags to indicate that this is a kernel thread and that
|
|
||||||
* this task is locked to this CPU.
|
|
||||||
*/
|
|
||||||
|
|
||||||
tcb->flags = (TCB_FLAG_TTYPE_KERNEL | TCB_FLAG_NONCANCELABLE |
|
|
||||||
TCB_FLAG_CPU_LOCKED);
|
|
||||||
tcb->cpu = cpu;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then start all of the other CPUs after we have completed the memory
|
/* Then start all of the other CPUs after we have completed the memory
|
||||||
|
|
|
@ -389,11 +389,7 @@ static FAR char *g_idleargv[1][2];
|
||||||
|
|
||||||
void nx_start(void)
|
void nx_start(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SMP
|
int cpu = 0;
|
||||||
int cpu;
|
|
||||||
#else
|
|
||||||
# define cpu 0
|
|
||||||
#endif
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
sinfo("Entry\n");
|
sinfo("Entry\n");
|
||||||
|
|
Loading…
Reference in New Issue