Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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