* [PATCH -next] x86/ioapic: Remove unused inline function mp_init_irq_at_boot
@ 2020-05-08 14:08 YueHaibing
2020-05-26 15:13 ` [tip: x86/cleanups] x86/io_apic: Remove unused function mp_init_irq_at_boot() tip-bot2 for YueHaibing
0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2020-05-08 14:08 UTC (permalink / raw)
To: tglx, mingo, bp, x86, hpa; +Cc: linux-kernel, YueHaibing
There's no callers in-tree anymore since commit
ef9e56d894ea ("x86/ioapic: Remove obsolete post hotplug update")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
arch/x86/kernel/apic/io_apic.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 913c88617848..ce61e3e7d399 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -154,19 +154,6 @@ static inline bool mp_is_legacy_irq(int irq)
return irq >= 0 && irq < nr_legacy_irqs();
}
-/*
- * Initialize all legacy IRQs and all pins on the first IOAPIC
- * if we have legacy interrupt controller. Kernel boot option "pirq="
- * may rely on non-legacy pins on the first IOAPIC.
- */
-static inline int mp_init_irq_at_boot(int ioapic, int irq)
-{
- if (!nr_legacy_irqs())
- return 0;
-
- return ioapic == 0 || mp_is_legacy_irq(irq);
-}
-
static inline struct irq_domain *mp_ioapic_irqdomain(int ioapic)
{
return ioapics[ioapic].irqdomain;
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip: x86/cleanups] x86/io_apic: Remove unused function mp_init_irq_at_boot()
2020-05-08 14:08 [PATCH -next] x86/ioapic: Remove unused inline function mp_init_irq_at_boot YueHaibing
@ 2020-05-26 15:13 ` tip-bot2 for YueHaibing
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for YueHaibing @ 2020-05-26 15:13 UTC (permalink / raw)
To: linux-tip-commits; +Cc: YueHaibing, Borislav Petkov, x86, LKML
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: fd52a75ca3545c965ff58a78b6ff0b0dc7d8d228
Gitweb: https://git.kernel.org/tip/fd52a75ca3545c965ff58a78b6ff0b0dc7d8d228
Author: YueHaibing <yuehaibing@huawei.com>
AuthorDate: Fri, 08 May 2020 22:08:08 +08:00
Committer: Borislav Petkov <bp@suse.de>
CommitterDate: Tue, 26 May 2020 17:01:20 +02:00
x86/io_apic: Remove unused function mp_init_irq_at_boot()
There are no callers in-tree anymore since
ef9e56d894ea ("x86/ioapic: Remove obsolete post hotplug update")
so remove it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200508140808.49428-1-yuehaibing@huawei.com
---
arch/x86/kernel/apic/io_apic.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 913c886..ce61e3e 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -154,19 +154,6 @@ static inline bool mp_is_legacy_irq(int irq)
return irq >= 0 && irq < nr_legacy_irqs();
}
-/*
- * Initialize all legacy IRQs and all pins on the first IOAPIC
- * if we have legacy interrupt controller. Kernel boot option "pirq="
- * may rely on non-legacy pins on the first IOAPIC.
- */
-static inline int mp_init_irq_at_boot(int ioapic, int irq)
-{
- if (!nr_legacy_irqs())
- return 0;
-
- return ioapic == 0 || mp_is_legacy_irq(irq);
-}
-
static inline struct irq_domain *mp_ioapic_irqdomain(int ioapic)
{
return ioapics[ioapic].irqdomain;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-26 15:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 14:08 [PATCH -next] x86/ioapic: Remove unused inline function mp_init_irq_at_boot YueHaibing
2020-05-26 15:13 ` [tip: x86/cleanups] x86/io_apic: Remove unused function mp_init_irq_at_boot() tip-bot2 for YueHaibing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).