diff --git a/arch/xtensa/src/common/xtensa_cpupause.c b/arch/xtensa/src/common/xtensa_cpupause.c index 93d3a76b34641..1eeb13c5844db 100644 --- a/arch/xtensa/src/common/xtensa_cpupause.c +++ b/arch/xtensa/src/common/xtensa_cpupause.c @@ -236,11 +236,7 @@ void xtensa_pause_handler(void) leave_critical_section(flags); } - tcb = current_task(cpu); - xtensa_savestate(tcb->xcp.regs); nxsched_process_delivered(cpu); - tcb = current_task(cpu); - xtensa_restorestate(tcb->xcp.regs); } /****************************************************************************