mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 06:04:28 +08:00
x64_64: it is not necessary to call restore_critical_section in irq
Remove restore_critical_section() call from common_handler() in x86_64 interrupt processing as it is not necessary during interrupt handling. The critical section state is properly managed by the interrupt framework elsewhere. Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -115,10 +115,6 @@ static uint64_t *common_handler(int irq, uint64_t *regs)
|
||||
*/
|
||||
|
||||
*running_task = tcb;
|
||||
|
||||
/* Restore the cpu lock */
|
||||
|
||||
restore_critical_section(tcb, this_cpu());
|
||||
}
|
||||
|
||||
/* Clear irq flag */
|
||||
|
||||
Reference in New Issue
Block a user