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:
hujun5
2026-01-20 11:49:39 -03:00
committed by Alan C. Assis
parent 2645e06c86
commit 7ee3890e7a
@@ -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 */