mirror of
https://github.com/apache/nuttx.git
synced 2026-08-28 12:50:36 +00:00
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:
parent
a2fcd9862c
commit
0bba53ce12
4 changed files with 3 additions and 34 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue