提交 fbab1c80 编写于 作者: R Russell King

ARM: entry: no need to check parent IRQ mask in IRQ handler return

There's no point checking to see whether IRQs were masked in the parent
context when returning from IRQ handling - the fact that we're handling
an IRQ means that the parent context must have had IRQs unmasked.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 1613cc11
...@@ -234,8 +234,9 @@ __irq_svc: ...@@ -234,8 +234,9 @@ __irq_svc:
#endif #endif
ldr r4, [sp, #S_PSR] @ irqs are already disabled ldr r4, [sp, #S_PSR] @ irqs are already disabled
#ifdef CONFIG_TRACE_IRQFLAGS #ifdef CONFIG_TRACE_IRQFLAGS
tst r4, #PSR_I_BIT @ The parent context IRQs must have been enabled to get here in
bleq trace_hardirqs_on @ the first place, so there's no point checking the PSR I bit.
bl trace_hardirqs_on
#endif #endif
svc_exit r4 @ return from exception svc_exit r4 @ return from exception
UNWIND(.fnend ) UNWIND(.fnend )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册