From 5b350f3a0f403a7b63bf53ed0a89ae858ede5110 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Fri, 13 Aug 2021 20:57:14 +0200 Subject: [PATCH] arch/*_reprioritizertr.c: Fix typos in comments. Signed-off-by: Abdelatif Guettouche --- arch/arm/src/arm/arm_reprioritizertr.c | 4 +--- arch/arm/src/armv6-m/arm_reprioritizertr.c | 4 +--- arch/arm/src/armv7-a/arm_reprioritizertr.c | 4 +--- arch/arm/src/armv7-m/arm_reprioritizertr.c | 4 +--- arch/arm/src/armv7-r/arm_reprioritizertr.c | 4 +--- arch/arm/src/armv8-m/arm_reprioritizertr.c | 4 +--- arch/avr/src/avr/up_reprioritizertr.c | 4 +--- arch/avr/src/avr32/up_reprioritizertr.c | 4 +--- arch/hc/src/common/up_reprioritizertr.c | 4 +--- arch/mips/src/mips32/mips_reprioritizertr.c | 4 +--- arch/misoc/src/lm32/lm32_reprioritizertr.c | 4 +--- arch/misoc/src/minerva/minerva_reprioritizertr.c | 6 ++---- arch/or1k/src/common/up_reprioritizertr.c | 4 +--- arch/renesas/src/common/up_reprioritizertr.c | 4 +--- arch/risc-v/src/rv32im/riscv_reprioritizertr.c | 4 +--- arch/risc-v/src/rv64gc/riscv_reprioritizertr.c | 4 +--- arch/sim/src/sim/up_reprioritizertr.c | 4 +--- arch/x86/src/common/up_reprioritizertr.c | 4 +--- arch/x86_64/src/common/up_reprioritizertr.c | 4 +--- arch/xtensa/src/common/xtensa_reprioritizertr.c | 4 +--- arch/z16/src/common/z16_reprioritizertr.c | 4 +--- arch/z80/src/common/z80_reprioritizertr.c | 4 +--- include/nuttx/arch.h | 3 +-- 23 files changed, 24 insertions(+), 69 deletions(-) diff --git a/arch/arm/src/arm/arm_reprioritizertr.c b/arch/arm/src/arm/arm_reprioritizertr.c index 50970cce5a..6d5cb0ca7b 100644 --- a/arch/arm/src/arm/arm_reprioritizertr.c +++ b/arch/arm/src/arm/arm_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/arm/src/armv6-m/arm_reprioritizertr.c b/arch/arm/src/armv6-m/arm_reprioritizertr.c index e22faeedae..c545a0030f 100644 --- a/arch/arm/src/armv6-m/arm_reprioritizertr.c +++ b/arch/arm/src/armv6-m/arm_reprioritizertr.c @@ -50,8 +50,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -111,7 +110,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/arm/src/armv7-a/arm_reprioritizertr.c b/arch/arm/src/armv7-a/arm_reprioritizertr.c index 1cd6ff38d0..12831e3b62 100644 --- a/arch/arm/src/armv7-a/arm_reprioritizertr.c +++ b/arch/arm/src/armv7-a/arm_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/arm/src/armv7-m/arm_reprioritizertr.c b/arch/arm/src/armv7-m/arm_reprioritizertr.c index a3373553f9..4dbe8f27b3 100644 --- a/arch/arm/src/armv7-m/arm_reprioritizertr.c +++ b/arch/arm/src/armv7-m/arm_reprioritizertr.c @@ -50,8 +50,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -111,7 +110,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/arm/src/armv7-r/arm_reprioritizertr.c b/arch/arm/src/armv7-r/arm_reprioritizertr.c index f664dcd26f..44c41b6b1d 100644 --- a/arch/arm/src/armv7-r/arm_reprioritizertr.c +++ b/arch/arm/src/armv7-r/arm_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/arm/src/armv8-m/arm_reprioritizertr.c b/arch/arm/src/armv8-m/arm_reprioritizertr.c index 13c3f0264e..e7f0a2219e 100644 --- a/arch/arm/src/armv8-m/arm_reprioritizertr.c +++ b/arch/arm/src/armv8-m/arm_reprioritizertr.c @@ -50,8 +50,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -111,7 +110,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/avr/src/avr/up_reprioritizertr.c b/arch/avr/src/avr/up_reprioritizertr.c index c876b2a391..7bf1565e96 100644 --- a/arch/avr/src/avr/up_reprioritizertr.c +++ b/arch/avr/src/avr/up_reprioritizertr.c @@ -50,8 +50,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -109,7 +108,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/avr/src/avr32/up_reprioritizertr.c b/arch/avr/src/avr32/up_reprioritizertr.c index a3d26a4d35..ccc3bf431c 100644 --- a/arch/avr/src/avr32/up_reprioritizertr.c +++ b/arch/avr/src/avr32/up_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/hc/src/common/up_reprioritizertr.c b/arch/hc/src/common/up_reprioritizertr.c index bdd111f848..04f074fa84 100644 --- a/arch/hc/src/common/up_reprioritizertr.c +++ b/arch/hc/src/common/up_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/mips/src/mips32/mips_reprioritizertr.c b/arch/mips/src/mips32/mips_reprioritizertr.c index f5088c5107..5d04a58638 100644 --- a/arch/mips/src/mips32/mips_reprioritizertr.c +++ b/arch/mips/src/mips32/mips_reprioritizertr.c @@ -53,8 +53,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -112,7 +111,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/misoc/src/lm32/lm32_reprioritizertr.c b/arch/misoc/src/lm32/lm32_reprioritizertr.c index 11c5cc7f1a..5203abe962 100644 --- a/arch/misoc/src/lm32/lm32_reprioritizertr.c +++ b/arch/misoc/src/lm32/lm32_reprioritizertr.c @@ -53,8 +53,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -112,7 +111,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/misoc/src/minerva/minerva_reprioritizertr.c b/arch/misoc/src/minerva/minerva_reprioritizertr.c index 565d3ffdf0..fcd1b0d3ab 100644 --- a/arch/misoc/src/minerva/minerva_reprioritizertr.c +++ b/arch/misoc/src/minerva/minerva_reprioritizertr.c @@ -53,8 +53,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,8 +109,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) if (switch_needed) { /* If we are going to do a context switch, then now is the right - * time to add any pending tasks back into the ready-to-run list - * task list now. + * time to add any pending tasks back into the ready-to-run list. */ if (g_pendingtasks.head) diff --git a/arch/or1k/src/common/up_reprioritizertr.c b/arch/or1k/src/common/up_reprioritizertr.c index bf22ea41a7..2a7c315b4a 100644 --- a/arch/or1k/src/common/up_reprioritizertr.c +++ b/arch/or1k/src/common/up_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/renesas/src/common/up_reprioritizertr.c b/arch/renesas/src/common/up_reprioritizertr.c index 75d3fcf9eb..c0f03925fa 100644 --- a/arch/renesas/src/common/up_reprioritizertr.c +++ b/arch/renesas/src/common/up_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/risc-v/src/rv32im/riscv_reprioritizertr.c b/arch/risc-v/src/rv32im/riscv_reprioritizertr.c index bfff454995..3b2d4c8f5a 100644 --- a/arch/risc-v/src/rv32im/riscv_reprioritizertr.c +++ b/arch/risc-v/src/rv32im/riscv_reprioritizertr.c @@ -53,8 +53,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -112,7 +111,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/risc-v/src/rv64gc/riscv_reprioritizertr.c b/arch/risc-v/src/rv64gc/riscv_reprioritizertr.c index 974bf5ced9..8cf0b82510 100644 --- a/arch/risc-v/src/rv64gc/riscv_reprioritizertr.c +++ b/arch/risc-v/src/rv64gc/riscv_reprioritizertr.c @@ -53,8 +53,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -112,7 +111,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/sim/src/sim/up_reprioritizertr.c b/arch/sim/src/sim/up_reprioritizertr.c index 08aadfd101..5b3a23228a 100644 --- a/arch/sim/src/sim/up_reprioritizertr.c +++ b/arch/sim/src/sim/up_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/x86/src/common/up_reprioritizertr.c b/arch/x86/src/common/up_reprioritizertr.c index 0a2c213418..7442508078 100644 --- a/arch/x86/src/common/up_reprioritizertr.c +++ b/arch/x86/src/common/up_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/x86_64/src/common/up_reprioritizertr.c b/arch/x86_64/src/common/up_reprioritizertr.c index 426a184ab2..c9461a187c 100644 --- a/arch/x86_64/src/common/up_reprioritizertr.c +++ b/arch/x86_64/src/common/up_reprioritizertr.c @@ -51,8 +51,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -110,7 +109,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/xtensa/src/common/xtensa_reprioritizertr.c b/arch/xtensa/src/common/xtensa_reprioritizertr.c index ba100bd834..760a1c2bc5 100644 --- a/arch/xtensa/src/common/xtensa_reprioritizertr.c +++ b/arch/xtensa/src/common/xtensa_reprioritizertr.c @@ -53,8 +53,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -112,7 +111,6 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/z16/src/common/z16_reprioritizertr.c b/arch/z16/src/common/z16_reprioritizertr.c index c688493d74..15a9124b7a 100644 --- a/arch/z16/src/common/z16_reprioritizertr.c +++ b/arch/z16/src/common/z16_reprioritizertr.c @@ -52,8 +52,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -111,7 +110,6 @@ void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/arch/z80/src/common/z80_reprioritizertr.c b/arch/z80/src/common/z80_reprioritizertr.c index fe8ba0e845..5ceb2ca57d 100644 --- a/arch/z80/src/common/z80_reprioritizertr.c +++ b/arch/z80/src/common/z80_reprioritizertr.c @@ -54,8 +54,7 @@ * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * Input Parameters: * tcb: The TCB of the task that has been reprioritized @@ -113,7 +112,6 @@ void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority) { /* If we are going to do a context switch, then now is the right * time to add any pending tasks back into the ready-to-run list. - * task list now */ if (g_pendingtasks.head) diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index fab214abbb..42e2dfeb0b 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -449,8 +449,7 @@ void up_release_pending(void); * 1) The priority of the currently running task drops and the next * task in the ready to run list has priority. * 2) An idle, ready to run task's priority has been raised above the - * the priority of the current, running task and it now has the - * priority. + * priority of the current, running task and it now has the priority. * * This function is called only from the NuttX scheduling * logic. Interrupts will always be disabled when this