remove redundant scheduling records

reason:
Since the scheduling records have already been moved to the interrupt exit in this submission,
we need to delete the original records' locations.
This commit fixes the regression from https://github.com/apache/nuttx/pull/13651

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-11-28 14:45:09 +08:00 committed by Xiang Xiao
parent a2fcd9862c
commit 0bba53ce12
4 changed files with 3 additions and 34 deletions

View file

@ -68,16 +68,7 @@
int arm_smp_sched_handler(int irq, void *context, void *arg)
{
struct tcb_s *tcb;
int cpu = this_cpu();
tcb = current_task(cpu);
nxsched_suspend_scheduler(tcb);
nxsched_process_delivered(cpu);
tcb = current_task(cpu);
nxsched_resume_scheduler(tcb);
UNUSED(tcb);
nxsched_process_delivered(this_cpu());
return OK;
}

View file

@ -68,16 +68,7 @@
int arm_smp_sched_handler(int irq, void *context, void *arg)
{
struct tcb_s *tcb;
int cpu = this_cpu();
tcb = current_task(cpu);
nxsched_suspend_scheduler(tcb);
nxsched_process_delivered(cpu);
tcb = current_task(cpu);
nxsched_resume_scheduler(tcb);
UNUSED(tcb);
nxsched_process_delivered(this_cpu());
return OK;
}

View file

@ -67,17 +67,7 @@
int arm64_smp_sched_handler(int irq, void *context, void *arg)
{
struct tcb_s *tcb;
int cpu = this_cpu();
tcb = current_task(cpu);
nxsched_suspend_scheduler(tcb);
nxsched_process_delivered(cpu);
tcb = current_task(cpu);
nxsched_resume_scheduler(tcb);
UNUSED(tcb);
nxsched_process_delivered(this_cpu());
return OK;
}

View file

@ -94,11 +94,8 @@ int x86_64_smp_sched_handler(int irq, void *c, void *arg)
struct tcb_s *tcb;
int cpu = this_cpu();
tcb = current_task(cpu);
nxsched_suspend_scheduler(tcb);
nxsched_process_delivered(cpu);
tcb = current_task(cpu);
nxsched_resume_scheduler(tcb);
x86_64_restorestate(tcb->xcp.regs);
return OK;