diff --git a/arch/sparc/src/s698pm/s698pm_cpustart.c b/arch/sparc/src/s698pm/s698pm_cpustart.c index df58abff83..24ce75feeb 100644 --- a/arch/sparc/src/s698pm/s698pm_cpustart.c +++ b/arch/sparc/src/s698pm/s698pm_cpustart.c @@ -71,8 +71,6 @@ volatile static spinlock_t g_cpu_boot; void s698pm_cpu_boot(void) { - struct tcb_s *tcb = this_task(); - _info("CPU%d Started\n", this_cpu()); /* Initialize CPU interrupts */ @@ -84,12 +82,12 @@ void s698pm_cpu_boot(void) #ifdef CONFIG_SCHED_INSTRUMENTATION /* Notify that this CPU has started */ - sched_note_cpu_started(tcb); + sched_note_cpu_started(this_task()); #endif /* Reset scheduler parameters */ - nxsched_resume_scheduler(tcb); + nxsched_resume_scheduler(this_task()); /* And finally, enable cpu interrupts */