mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
sim: it is not necessary to call restore_critical_section in irq
Remove restore_critical_section() call from up_switch_context() in simulator as it is not necessary during interrupt context switching. The critical section state is properly managed elsewhere in the interrupt handling flow. Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
7ee3890e7a
commit
e604bacd42
1 changed files with 0 additions and 4 deletions
|
|
@ -70,10 +70,6 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
|
|||
|
||||
sim_savestate(rtcb->xcp.regs);
|
||||
|
||||
/* Restore the cpu lock */
|
||||
|
||||
restore_critical_section(tcb, this_cpu());
|
||||
|
||||
/* Then switch contexts */
|
||||
|
||||
sim_restorestate(tcb->xcp.regs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue