mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
arch: remove nxsched_resume_scheduler in cpustart
Idle thread initialization does not require calling nxsched_resume_scheduler Co-authored-by: yinshengkai <yinshengkai@xiaomi.com> Signed-off-by: guoshengyuan1 <guoshengyuan1@xiaomi.com>
This commit is contained in:
@@ -123,10 +123,6 @@ static void arm64_smp_init_top(void)
|
|||||||
sched_note_cpu_started(tcb);
|
sched_note_cpu_started(tcb);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Reset scheduler parameters */
|
|
||||||
|
|
||||||
nxsched_resume_scheduler(tcb);
|
|
||||||
|
|
||||||
/* core n, idle n */
|
/* core n, idle n */
|
||||||
|
|
||||||
write_sysreg(0, tpidrro_el0);
|
write_sysreg(0, tpidrro_el0);
|
||||||
|
|||||||
@@ -86,10 +86,6 @@ void s698pm_cpu_boot(void)
|
|||||||
sched_note_cpu_started(this_task());
|
sched_note_cpu_started(this_task());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Reset scheduler parameters */
|
|
||||||
|
|
||||||
nxsched_resume_scheduler(this_task());
|
|
||||||
|
|
||||||
/* And finally, enable cpu interrupts */
|
/* And finally, enable cpu interrupts */
|
||||||
|
|
||||||
#ifndef CONFIG_SUPPRESS_INTERRUPTS
|
#ifndef CONFIG_SUPPRESS_INTERRUPTS
|
||||||
|
|||||||
@@ -130,10 +130,6 @@ void IRAM_ATTR xtensa_appcpu_start(void)
|
|||||||
|
|
||||||
g_appcpu_started = true;
|
g_appcpu_started = true;
|
||||||
|
|
||||||
/* Reset scheduler parameters */
|
|
||||||
|
|
||||||
nxsched_resume_scheduler(tcb);
|
|
||||||
|
|
||||||
/* Move CPU0 exception vectors to IRAM */
|
/* Move CPU0 exception vectors to IRAM */
|
||||||
|
|
||||||
__asm__ __volatile__ ("wsr %0, vecbase\n"::"r" (_init_start));
|
__asm__ __volatile__ ("wsr %0, vecbase\n"::"r" (_init_start));
|
||||||
|
|||||||
@@ -129,10 +129,6 @@ void xtensa_appcpu_start(void)
|
|||||||
|
|
||||||
g_appcpu_started = true;
|
g_appcpu_started = true;
|
||||||
|
|
||||||
/* Reset scheduler parameters */
|
|
||||||
|
|
||||||
nxsched_resume_scheduler(tcb);
|
|
||||||
|
|
||||||
/* Move CPU0 exception vectors to IRAM */
|
/* Move CPU0 exception vectors to IRAM */
|
||||||
|
|
||||||
__asm__ __volatile__ ("wsr %0, vecbase\n"::"r" (_init_start));
|
__asm__ __volatile__ ("wsr %0, vecbase\n"::"r" (_init_start));
|
||||||
|
|||||||
Reference in New Issue
Block a user