arm64: Skip irqflags tracing for NMI in IRQs disabled context
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:59:02 +0000 (14:59 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:06:41 +0000 (10:06 +0000)
commitc25349fd3c8024cfebcc9b01ee6cfb093fab9be0
tree21041aba5882f29bcfe841411952de0e088a5437
parent1234ad686fb1bde5a9c2447fc4c9df8430358763
arm64: Skip irqflags tracing for NMI in IRQs disabled context

When an NMI is raised while interrupts where disabled, the IRQ tracing
already is in the correct state (i.e. hardirqs_off) and should be left
as such when returning to the interrupted context.

Check whether PMR was masking interrupts when the NMI was raised and
skip IRQ tracing if necessary.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/entry.S