diff --git a/arch/risc-v/src/common/riscv_switchcontext.c b/arch/risc-v/src/common/riscv_switchcontext.c index ce0f39f8131..feb399c10a4 100644 --- a/arch/risc-v/src/common/riscv_switchcontext.c +++ b/arch/risc-v/src/common/riscv_switchcontext.c @@ -80,12 +80,6 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb) else { - /* Update scheduler parameters */ - - nxsched_switch_context(rtcb, tcb); - - /* Then switch contexts */ - riscv_switchcontext(); /* riscv_switchcontext forces a context switch to the task at the