From 62a5f1e11aee63bbae3ad75fb0037c83e7ad90b7 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Mon, 8 Jul 2024 11:00:39 +0800 Subject: [PATCH] arch: remove unused up_cpu_pausereq waiting reason: After the up_cpu_pause call completes, it guarantees that other CPUs have fully stopped. Signed-off-by: hujun5 --- arch/arm/src/armv6-m/arm_schedulesigaction.c | 6 ------ arch/arm/src/armv7-a/arm_schedulesigaction.c | 6 ------ arch/arm/src/armv7-m/arm_schedulesigaction.c | 6 ------ arch/arm/src/armv7-r/arm_schedulesigaction.c | 6 ------ arch/arm/src/armv8-m/arm_schedulesigaction.c | 6 ------ arch/arm/src/armv8-r/arm_schedulesigaction.c | 6 ------ arch/arm64/src/common/arm64_schedulesigaction.c | 6 ------ arch/ceva/src/common/ceva_schedulesigaction.c | 6 ------ arch/risc-v/src/common/riscv_schedulesigaction.c | 6 ------ arch/sparc/src/sparc_v8/sparc_v8_schedulesigaction.c | 6 ------ arch/x86_64/src/intel64/intel64_schedulesigaction.c | 6 ------ arch/xtensa/src/common/xtensa_schedsigaction.c | 6 ------ 12 files changed, 72 deletions(-) diff --git a/arch/arm/src/armv6-m/arm_schedulesigaction.c b/arch/arm/src/armv6-m/arm_schedulesigaction.c index 000c2e866c5dc..fc7487507f3d8 100644 --- a/arch/arm/src/armv6-m/arm_schedulesigaction.c +++ b/arch/arm/src/armv6-m/arm_schedulesigaction.c @@ -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 diff --git a/arch/arm/src/armv7-a/arm_schedulesigaction.c b/arch/arm/src/armv7-a/arm_schedulesigaction.c index 2535d5362507a..a8e8dc400f6a1 100644 --- a/arch/arm/src/armv7-a/arm_schedulesigaction.c +++ b/arch/arm/src/armv7-a/arm_schedulesigaction.c @@ -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 diff --git a/arch/arm/src/armv7-m/arm_schedulesigaction.c b/arch/arm/src/armv7-m/arm_schedulesigaction.c index 16a05c6f3a517..3fd5f2d219938 100644 --- a/arch/arm/src/armv7-m/arm_schedulesigaction.c +++ b/arch/arm/src/armv7-m/arm_schedulesigaction.c @@ -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 diff --git a/arch/arm/src/armv7-r/arm_schedulesigaction.c b/arch/arm/src/armv7-r/arm_schedulesigaction.c index 066fcf4512e8d..9ff3e5f296ad0 100644 --- a/arch/arm/src/armv7-r/arm_schedulesigaction.c +++ b/arch/arm/src/armv7-r/arm_schedulesigaction.c @@ -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 diff --git a/arch/arm/src/armv8-m/arm_schedulesigaction.c b/arch/arm/src/armv8-m/arm_schedulesigaction.c index 5b5df8c0dfc4b..aea199713966e 100644 --- a/arch/arm/src/armv8-m/arm_schedulesigaction.c +++ b/arch/arm/src/armv8-m/arm_schedulesigaction.c @@ -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 diff --git a/arch/arm/src/armv8-r/arm_schedulesigaction.c b/arch/arm/src/armv8-r/arm_schedulesigaction.c index cad2c59f68946..490e630810744 100644 --- a/arch/arm/src/armv8-r/arm_schedulesigaction.c +++ b/arch/arm/src/armv8-r/arm_schedulesigaction.c @@ -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 diff --git a/arch/arm64/src/common/arm64_schedulesigaction.c b/arch/arm64/src/common/arm64_schedulesigaction.c index 47060cdd808cd..a4b5ab34e26c7 100644 --- a/arch/arm64/src/common/arm64_schedulesigaction.c +++ b/arch/arm64/src/common/arm64_schedulesigaction.c @@ -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 diff --git a/arch/ceva/src/common/ceva_schedulesigaction.c b/arch/ceva/src/common/ceva_schedulesigaction.c index 2817ce087dd17..4792b155ee687 100644 --- a/arch/ceva/src/common/ceva_schedulesigaction.c +++ b/arch/ceva/src/common/ceva_schedulesigaction.c @@ -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 */ diff --git a/arch/risc-v/src/common/riscv_schedulesigaction.c b/arch/risc-v/src/common/riscv_schedulesigaction.c index 98046336b147d..f6a172b6800b4 100644 --- a/arch/risc-v/src/common/riscv_schedulesigaction.c +++ b/arch/risc-v/src/common/riscv_schedulesigaction.c @@ -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 diff --git a/arch/sparc/src/sparc_v8/sparc_v8_schedulesigaction.c b/arch/sparc/src/sparc_v8/sparc_v8_schedulesigaction.c index 3b91aac9ef3c9..66882757de851 100644 --- a/arch/sparc/src/sparc_v8/sparc_v8_schedulesigaction.c +++ b/arch/sparc/src/sparc_v8/sparc_v8_schedulesigaction.c @@ -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 diff --git a/arch/x86_64/src/intel64/intel64_schedulesigaction.c b/arch/x86_64/src/intel64/intel64_schedulesigaction.c index 589d955fcea0d..806350f9253f6 100644 --- a/arch/x86_64/src/intel64/intel64_schedulesigaction.c +++ b/arch/x86_64/src/intel64/intel64_schedulesigaction.c @@ -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 diff --git a/arch/xtensa/src/common/xtensa_schedsigaction.c b/arch/xtensa/src/common/xtensa_schedsigaction.c index 1e37da883e54d..49cc4563294e6 100644 --- a/arch/xtensa/src/common/xtensa_schedsigaction.c +++ b/arch/xtensa/src/common/xtensa_schedsigaction.c @@ -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