From 7ee3890e7a09eb2e448af09606923b5ee904d65f Mon Sep 17 00:00:00 2001 From: hujun5 Date: Mon, 14 Jul 2025 18:43:01 +0800 Subject: [PATCH] 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 --- arch/x86_64/src/intel64/intel64_handlers.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/x86_64/src/intel64/intel64_handlers.c b/arch/x86_64/src/intel64/intel64_handlers.c index 93a536c8c0d..c224ad29c2d 100644 --- a/arch/x86_64/src/intel64/intel64_handlers.c +++ b/arch/x86_64/src/intel64/intel64_handlers.c @@ -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 */