Skip to contentSkip to conversation

arm64: entry: remove test_irqs_unmasked macro

PATCH Applied Mark Rutland 4 participants 4 messages Mar 23, 2021 – Mar 26, 2021 arm64

lore
Share & tools
lore

Mark Rutland

author reviewer
#0 lore raw

PATCH 1/1 arm64: entry: remove test_irqs_unmasked macro

We haven't needed the test_irqs_unmasked macro since commit:

105fc3352077bba5 ("arm64: entry: move el1 irq/nmi logic to C")

... and as we convert more of the entry logic to C it is decreasingly likely we'll need it in future, so let's remove the unused macro.

There should be no functional change as a result of this patch.

Cc Catalin marinas <[email protected]>
Cc James Morse <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm64/kernel/entry.S | 14 --------------
 1 file changed, 14 deletions(-)
arch/arm64/kernel/entry.S +0 -14
index a31a0a713c85..a82af88e8599 100644
@@ -499,20 +499,6 @@ tsk	.req	x28		// current thread_info
 	irq_stack_exit
 	.endm
 
-#ifdef CONFIG_ARM64_PSEUDO_NMI
-	/*
-	 * Set res to 0 if irqs were unmasked in interrupted context.
-	 * Otherwise set res to non-0 value.
-	 */
-	.macro	test_irqs_unmasked res:req, pmr:req
-alternative_if ARM64_HAS_IRQ_PRIO_MASKING
-	sub	\res, \pmr, #GIC_PRIO_IRQON
-alternative_else
-	mov	\res, xzr
-alternative_endif
-	.endm
-#endif
-
 	.macro	gic_prio_kentry_setup, tmp:req
 #ifdef CONFIG_ARM64_PSEUDO_NMI
 	alternative_if ARM64_HAS_IRQ_PRIO_MASKING
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Mark Rutland

We haven't needed the test_irqs_unmasked macro since commit:

105fc3352077bba5 ("arm64: entry: move el1 irq/nmi logic to C")

... and as we convert more of the entry logic to C it is decreasingly likely we'll need it in future, so let's remove the unused macro.

Quoted 7 lines

There should be no functional change as a result of this patch.

Cc Catalin marinas <[email protected]>
Cc James Morse <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Will Deacon <[email protected]>
	M.
Signature · 6 lines
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Mark Rutland
Quoted 9 lines · Mark Rutland

We haven't needed the test_irqs_unmasked macro since commit:

105fc3352077bba5 ("arm64: entry: move el1 irq/nmi logic to C")

... and as we convert more of the entry logic to C it is decreasingly likely we'll need it in future, so let's remove the unused macro.

There should be no functional change as a result of this patch.

Quoted 8 lines
Cc Catalin marinas <[email protected]>
Cc James Morse <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm64/kernel/entry.S | 14 --------------
 1 file changed, 14 deletions(-)

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer Applied
#3 lore raw
In reply to Mark Rutland
Quoted 8 lines · Mark Rutland

We haven't needed the test_irqs_unmasked macro since commit:

105fc3352077bba5 ("arm64: entry: move el1 irq/nmi logic to C")

... and as we convert more of the entry logic to C it is decreasingly likely we'll need it in future, so let's remove the unused macro.

[...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: entry: remove test_irqs_unmasked macro

      https://git.kernel.org/arm64/c/9eef29d8c31b
Signature · 7 lines
Catalin


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel