Skip to contentSkip to conversation

arm64: entry: Use SDEI event constants

PATCH Applied Florian Fainelli 2 participants 2 messages Nov 18, 2021 – Dec 6, 2021 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: entry: Use SDEI event constants

Use SDEI_EV_FAILED instead of open coding the 1 to make it clearer how SDEI_EVENT_COMPLETE vs. SDEI_EVENT_COMPLETE_AND_RESUME is selected.

---
 arch/arm64/kernel/entry.S | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm64/kernel/entry.S +4 -2
index 2f69ae43941d..772ec2ecf488 100644
@@ -966,8 +966,10 @@ SYM_CODE_START(__sdei_asm_handler)
 	mov	sp, x1
 
 	mov	x1, x0			// address to complete_and_resume
-	/* x0 = (x0 <= 1) ? EVENT_COMPLETE:EVENT_COMPLETE_AND_RESUME */
-	cmp	x0, #1
+	/* x0 = (x0 <= SDEI_EV_FAILED) ?
+	 * EVENT_COMPLETE:EVENT_COMPLETE_AND_RESUME
+	 */
+	cmp	x0, #SDEI_EV_FAILED
 	mov_q	x2, SDEI_1_0_FN_SDEI_EVENT_COMPLETE
 	mov_q	x3, SDEI_1_0_FN_SDEI_EVENT_COMPLETE_AND_RESUME
 	csel	x0, x2, x3, ls
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Florian Fainelli

Use SDEI_EV_FAILED instead of open coding the 1 to make it clearer how SDEI_EVENT_COMPLETE vs. SDEI_EVENT_COMPLETE_AND_RESUME is selected.

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

[1/1] arm64: entry: Use SDEI event constants

      https://git.kernel.org/arm64/c/c9f5ea08a0f0
Signature · 1 line
Catalin