xtensa_exit.c: Co-processor state is restored as part of the

SYS_Restore_context call, no need to call it separately.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2022-03-08 10:50:35 +01:00 committed by Petro Karashchenko
parent 71ba4a6b76
commit 7c57739d1d

View File

@ -143,12 +143,6 @@ void up_exit(int status)
nxsched_resume_scheduler(tcb);
#if XCHAL_CP_NUM > 0
/* Set up the co-processor state for the newly started thread. */
xtensa_coproc_restorestate(&tcb->xcp.cpstate);
#endif
#ifdef CONFIG_ARCH_ADDRENV
/* Make sure that the address environment for the previously running
* task is closed down gracefully (data caches dump, MMU flushed) and
@ -163,7 +157,7 @@ void up_exit(int status)
xtensa_context_restore(tcb->xcp.regs);
/* xtensa_full_context_restore() should not return but could if the
/* xtensa_context_restore() should not return but could if the
* software interrupts are disabled.
*/