From 1e9434e2db5cbc8bb4a93632e27a80b5fa29019d Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Wed, 17 Jan 2024 15:07:13 +0800 Subject: [PATCH] arch/: remove duplicated task exit logs Newly added logging in `sched/task_exit.c` obsoletes the existing ones in `arch/up_exit()`, thus remove the latter to reduce duplications. Signed-off-by: Yanfeng Liu --- arch/arm/src/common/arm_exit.c | 2 -- arch/avr/src/common/avr_exit.c | 2 -- arch/hc/src/common/hc_exit.c | 2 -- arch/mips/src/common/mips_exit.c | 2 -- arch/misoc/src/lm32/lm32_exit.c | 2 -- arch/misoc/src/minerva/minerva_exit.c | 2 -- arch/or1k/src/common/or1k_exit.c | 2 -- arch/renesas/src/common/renesas_exit.c | 2 -- arch/risc-v/src/common/riscv_exit.c | 2 -- arch/sim/src/sim/sim_exit.c | 2 -- arch/sparc/src/common/sparc_exit.c | 2 -- arch/x86/src/common/x86_exit.c | 2 -- arch/x86_64/src/common/x86_64_exit.c | 2 -- arch/xtensa/src/common/xtensa_exit.c | 2 -- arch/z16/src/common/z16_exit.c | 2 -- arch/z80/src/common/z80_exit.c | 2 -- 16 files changed, 32 deletions(-) diff --git a/arch/arm/src/common/arm_exit.c b/arch/arm/src/common/arm_exit.c index 2a68b93ddb2..0f12c176008 100644 --- a/arch/arm/src/common/arm_exit.c +++ b/arch/arm/src/common/arm_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/avr/src/common/avr_exit.c b/arch/avr/src/common/avr_exit.c index 5dd28dc7bae..99da35aecdf 100644 --- a/arch/avr/src/common/avr_exit.c +++ b/arch/avr/src/common/avr_exit.c @@ -61,8 +61,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/hc/src/common/hc_exit.c b/arch/hc/src/common/hc_exit.c index 447f417cdeb..7f5c454da2a 100644 --- a/arch/hc/src/common/hc_exit.c +++ b/arch/hc/src/common/hc_exit.c @@ -60,8 +60,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/mips/src/common/mips_exit.c b/arch/mips/src/common/mips_exit.c index ff95efca41f..ea0b36cc983 100644 --- a/arch/mips/src/common/mips_exit.c +++ b/arch/mips/src/common/mips_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/misoc/src/lm32/lm32_exit.c b/arch/misoc/src/lm32/lm32_exit.c index 535186f4167..455d25dc0d9 100644 --- a/arch/misoc/src/lm32/lm32_exit.c +++ b/arch/misoc/src/lm32/lm32_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/misoc/src/minerva/minerva_exit.c b/arch/misoc/src/minerva/minerva_exit.c index 36f771839d6..f3d6c178980 100644 --- a/arch/misoc/src/minerva/minerva_exit.c +++ b/arch/misoc/src/minerva/minerva_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/or1k/src/common/or1k_exit.c b/arch/or1k/src/common/or1k_exit.c index a5360b6570d..eef1a01c302 100644 --- a/arch/or1k/src/common/or1k_exit.c +++ b/arch/or1k/src/common/or1k_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/renesas/src/common/renesas_exit.c b/arch/renesas/src/common/renesas_exit.c index 35e16d1d981..27abbdd009a 100644 --- a/arch/renesas/src/common/renesas_exit.c +++ b/arch/renesas/src/common/renesas_exit.c @@ -60,8 +60,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/risc-v/src/common/riscv_exit.c b/arch/risc-v/src/common/riscv_exit.c index 8260754a758..86619cb3f5a 100644 --- a/arch/risc-v/src/common/riscv_exit.c +++ b/arch/risc-v/src/common/riscv_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/sim/src/sim/sim_exit.c b/arch/sim/src/sim/sim_exit.c index fe4be9fa14b..53a2221d51e 100644 --- a/arch/sim/src/sim/sim_exit.c +++ b/arch/sim/src/sim/sim_exit.c @@ -58,8 +58,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", this_task()); - /* Destroy the task at the head of the ready to run list. */ nxtask_exit(); diff --git a/arch/sparc/src/common/sparc_exit.c b/arch/sparc/src/common/sparc_exit.c index 17dc6842e02..c81a5a381e9 100644 --- a/arch/sparc/src/common/sparc_exit.c +++ b/arch/sparc/src/common/sparc_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) (void)enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Update scheduler parameters */ diff --git a/arch/x86/src/common/x86_exit.c b/arch/x86/src/common/x86_exit.c index 8b0c2a42313..a26e3914af2 100644 --- a/arch/x86/src/common/x86_exit.c +++ b/arch/x86/src/common/x86_exit.c @@ -61,8 +61,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/x86_64/src/common/x86_64_exit.c b/arch/x86_64/src/common/x86_64_exit.c index 916e30fd4be..43f0dcc66d6 100644 --- a/arch/x86_64/src/common/x86_64_exit.c +++ b/arch/x86_64/src/common/x86_64_exit.c @@ -60,8 +60,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", this_task()); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/xtensa/src/common/xtensa_exit.c b/arch/xtensa/src/common/xtensa_exit.c index 83ddcc8d641..47f7024aa06 100644 --- a/arch/xtensa/src/common/xtensa_exit.c +++ b/arch/xtensa/src/common/xtensa_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/z16/src/common/z16_exit.c b/arch/z16/src/common/z16_exit.c index af5fbc7f1e7..85d274bf34c 100644 --- a/arch/z16/src/common/z16_exit.c +++ b/arch/z16/src/common/z16_exit.c @@ -60,8 +60,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */ diff --git a/arch/z80/src/common/z80_exit.c b/arch/z80/src/common/z80_exit.c index a6afa432619..9acbee62c32 100644 --- a/arch/z80/src/common/z80_exit.c +++ b/arch/z80/src/common/z80_exit.c @@ -62,8 +62,6 @@ void up_exit(int status) enter_critical_section(); - sinfo("TCB=%p exiting\n", tcb); - nxsched_dumponexit(); /* Destroy the task at the head of the ready to run list. */