Skip to content

Commit

Permalink
remove redundant scheduling records
Browse files Browse the repository at this point in the history
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 #13651

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 authored and xiaoxiang781216 committed Nov 28, 2024
1 parent a2fcd98 commit 0bba53c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 34 deletions.
11 changes: 1 addition & 10 deletions arch/arm/src/armv7-a/arm_smpcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
11 changes: 1 addition & 10 deletions arch/arm/src/armv7-r/arm_smpcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
12 changes: 1 addition & 11 deletions arch/arm64/src/common/arm64_smpcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 0 additions & 3 deletions arch/x86_64/src/intel64/intel64_smpcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0bba53c

Please sign in to comment.