diff mbox series

x86: purge NMI_IO_APIC

Message ID fd1e8ff0-0d85-47bd-85d6-6cfbfdd8813a@suse.com (mailing list archive)
State New, archived
Headers show
Series x86: purge NMI_IO_APIC | expand

Commit Message

Jan Beulich Jan. 25, 2024, 2:13 p.m. UTC
Even going back to 3.2 source code, I can't spot how this watchdog mode
could ever have been enabled in Xen. The only effect its presence had
for all the years was the retaining of a dead string literal.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

Comments

Andrew Cooper Jan. 25, 2024, 4:45 p.m. UTC | #1
On 25/01/2024 2:13 pm, Jan Beulich wrote:
> Even going back to 3.2 source code, I can't spot how this watchdog mode
> could ever have been enabled in Xen. The only effect its presence had
> for all the years was the retaining of a dead string literal.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

We have far too much junk here.

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
diff mbox series

Patch

--- a/xen/arch/x86/include/asm/apic.h
+++ b/xen/arch/x86/include/asm/apic.h
@@ -186,7 +186,6 @@  extern void check_nmi_watchdog(void);
 
 extern unsigned int nmi_watchdog;
 #define NMI_NONE	0
-#define NMI_IO_APIC	1
-#define NMI_LOCAL_APIC	2
+#define NMI_LOCAL_APIC	1
 
 #endif /* __ASM_APIC_H */
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -2004,11 +2004,6 @@  static void __init check_timer(void)
     }
     printk(" failed.\n");
 
-    if (nmi_watchdog == NMI_IO_APIC) {
-        printk(KERN_WARNING "timer doesn't work through the IO-APIC - disabling NMI Watchdog!\n");
-        nmi_watchdog = 0;
-    }
-
     printk(KERN_INFO "...trying to set up timer as Virtual Wire IRQ...");
 
     disable_8259A_irq(irq_to_desc(0));