Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1623906 > unrolled thread

[tip:x86/cleanups] x86/irq: Remove a redundant #ifdef directive

Started bytip-bot for Dou Liyang <tipbot@zytor.com>
First post2017-04-14 22:50 +0200
Last post2017-04-14 22:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [tip:x86/cleanups] x86/irq: Remove a redundant #ifdef directive tip-bot for Dou Liyang <tipbot@zytor.com> - 2017-04-14 22:50 +0200

#1623906 — [tip:x86/cleanups] x86/irq: Remove a redundant #ifdef directive

Fromtip-bot for Dou Liyang <tipbot@zytor.com>
Date2017-04-14 22:50 +0200
Subject[tip:x86/cleanups] x86/irq: Remove a redundant #ifdef directive
Message-ID<twgkh-5N9-1@gated-at.bofh.it>
Commit-ID:  0ccecd95e797f0c383a43278fcca74d47cd8a785
Gitweb:     http://git.kernel.org/tip/0ccecd95e797f0c383a43278fcca74d47cd8a785
Author:     Dou Liyang <douly.fnst@cn.fujitsu.com>
AuthorDate: Mon, 10 Apr 2017 16:05:00 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 14 Apr 2017 22:43:01 +0200

x86/irq: Remove a redundant #ifdef directive

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 | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c
index 1423ab1..7468c69 100644
--- a/arch/x86/kernel/irqinit.c
+++ b/arch/x86/kernel/irqinit.c
@@ -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
 }

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web