Skip to content

Commit

Permalink
arch: remove unused up_cpu_pausereq waiting
Browse files Browse the repository at this point in the history
reason:
After the up_cpu_pause call completes, it guarantees that other CPUs have fully stopped.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed Sep 3, 2024
1 parent f084685 commit 62a5f1e
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 72 deletions.
6 changes: 0 additions & 6 deletions arch/arm/src/armv6-m/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/src/armv7-a/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/src/armv7-m/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/src/armv7-r/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/src/armv8-m/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/src/armv8-r/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/arm64/src/common/arm64_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/ceva/src/common/ceva_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
/* Pause the CPU */

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}
}

/* Now tcb on the other CPU can be accessed safely */
Expand Down
6 changes: 0 additions & 6 deletions arch/risc-v/src/common/riscv_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/sparc/src/sparc_v8/sparc_v8_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/x86_64/src/intel64/intel64_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved. These will be
Expand Down
6 changes: 0 additions & 6 deletions arch/xtensa/src/common/xtensa_schedsigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)

up_cpu_pause(cpu);

/* Wait while the pause request is pending */

while (up_cpu_pausereq(cpu))
{
}

/* Now tcb on the other CPU can be accessed safely */

/* Copy tcb->xcp.regs to tcp.xcp.saved_regs. These will be
Expand Down

0 comments on commit 62a5f1e

Please sign in to comment.