x86/irq: Remove a redundant #ifdef directive
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Mon, 10 Apr 2017 08:05:00 +0000 (16:05 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Apr 2017 20:43:01 +0000 (22:43 +0200)
The call to irq_ctx_init() is wrapped in #ifdef CONFIG_X86_32.

The declaration of irq_ctx_init in irq.h provides already a stub inline for
the X86_32=n case.

Remove the redundant #ifdef in the code.

[ tglx: Massaged changelog ]

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Link: http://lkml.kernel.org/r/1491811500-30307-1-git-send-email-douly.fnst@cn.fujitsu.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/irqinit.c

index 1423ab1b0312269fd3130392a94a74db755cc2b5..7468c69875477e876dafd5209f0cd83c6939bce9 100644 (file)
@@ -195,7 +195,5 @@ void __init native_init_IRQ(void)
        if (!acpi_ioapic && !of_ioapic && nr_legacy_irqs())
                setup_irq(2, &irq2);
 
-#ifdef CONFIG_X86_32
        irq_ctx_init(smp_processor_id());
-#endif
 }