Skip to content

Commit fd52a75

Browse files
YueHaibingsuryasaimadhu
authored andcommitted
x86/io_apic: Remove unused function mp_init_irq_at_boot()
There are no callers in-tree anymore since ef9e56d ("x86/ioapic: Remove obsolete post hotplug update") so remove it. Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 67d631b commit fd52a75

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

arch/x86/kernel/apic/io_apic.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -154,19 +154,6 @@ static inline bool mp_is_legacy_irq(int irq)
154154
return irq >= 0 && irq < nr_legacy_irqs();
155155
}
156156

157-
/*
158-
* Initialize all legacy IRQs and all pins on the first IOAPIC
159-
* if we have legacy interrupt controller. Kernel boot option "pirq="
160-
* may rely on non-legacy pins on the first IOAPIC.
161-
*/
162-
static inline int mp_init_irq_at_boot(int ioapic, int irq)
163-
{
164-
if (!nr_legacy_irqs())
165-
return 0;
166-
167-
return ioapic == 0 || mp_is_legacy_irq(irq);
168-
}
169-
170157
static inline struct irq_domain *mp_ioapic_irqdomain(int ioapic)
171158
{
172159
return ioapics[ioapic].irqdomain;

0 commit comments

Comments
 (0)