Skip to content

Commit

Permalink
arch/armv7-a: fix assert in up_cpu_resume() with common pause API
Browse files Browse the repository at this point in the history
This patch fix the assert issue happened on product with
commit ("os/arch/armv7-a: add api to pause and resume all CPUs")
If signaling task is scheduled on the current CPU, then
we don't need to resume the other CPUS as we don't pause them before.

Signed-off-by: Neelkumar Patel <[email protected]>
  • Loading branch information
neel-samsung authored and kishore-sn committed Jan 31, 2025
1 parent d9a9d17 commit 2e8dd8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion os/arch/arm/src/armv7-a/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

/* RESUME the other CPUs if they were PAUSED */

up_cpu_resume_all();
if (cpu != me) {
up_cpu_resume_all();
}
}
}

Expand Down

0 comments on commit 2e8dd8e

Please sign in to comment.