Skip to content

Commit

Permalink
sched: fix nxsched_process_delivered did not call hook
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed Oct 14, 2024
1 parent b964eee commit 35566d9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/src/armv7-a/arm_smpcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,16 @@

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);
return OK;
}

Expand Down
7 changes: 7 additions & 0 deletions arch/arm/src/armv7-r/arm_smpcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,16 @@

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);
return OK;
}

Expand Down
7 changes: 7 additions & 0 deletions arch/arm64/src/common/arm64_smpcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,16 @@

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);

return OK;
}
Expand Down

0 comments on commit 35566d9

Please sign in to comment.