git: cf59dabe161f - main - x86 LAPIC: force edge-triggered mode for !bootverbose as well

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 24 Oct 2025 18:56:11 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=cf59dabe161f956ac7d36fbb91b7edeab9d0f6c3

commit cf59dabe161f956ac7d36fbb91b7edeab9d0f6c3
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-10-24 18:17:56 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-10-24 18:54:17 +0000

    x86 LAPIC: force edge-triggered mode for !bootverbose as well
    
    Submitted by:   Austin Shafer <ashafer@nvidia.com>
    Reviewed by:    imp, jhb
    Fixes:  5c039412a2823
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D53336
---
 sys/x86/x86/local_apic.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index db9a1eb757de..c1c9029531f5 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -372,9 +372,12 @@ lvt_mode_impl(struct lapic *la, struct lvt *lvt, u_int pin, uint32_t value)
 	case APIC_LVT_DM_SMI:
 	case APIC_LVT_DM_INIT:
 	case APIC_LVT_DM_EXTINT:
-		if (!lvt->lvt_edgetrigger && bootverbose) {
-			printf("lapic%u: Forcing LINT%u to edge trigger\n",
-			    la->la_id, pin);
+		if (!lvt->lvt_edgetrigger) {
+			if (bootverbose) {
+				printf(
+				    "lapic%u: Forcing LINT%u to edge trigger\n",
+				    la->la_id, pin);
+			}
 			value &= ~APIC_LVT_TM;
 		}
 		/* Use a vector of 0. */