Commit 69de72ec authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar

x86/irq: Remove vector_used_by_percpu_irq()

Last user (lguest) is gone. Remove it.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20170828064956.201432430@linutronix.deSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 416b0c0f
...@@ -44,7 +44,6 @@ extern __visible unsigned int do_IRQ(struct pt_regs *regs); ...@@ -44,7 +44,6 @@ extern __visible unsigned int do_IRQ(struct pt_regs *regs);
/* Interrupt vector management */ /* Interrupt vector management */
extern DECLARE_BITMAP(used_vectors, NR_VECTORS); extern DECLARE_BITMAP(used_vectors, NR_VECTORS);
extern int vector_used_by_percpu_irq(unsigned int vector);
extern void init_ISA_irqs(void); extern void init_ISA_irqs(void);
......
...@@ -346,8 +346,6 @@ __visible void __irq_entry smp_trace_x86_platform_ipi(struct pt_regs *regs) ...@@ -346,8 +346,6 @@ __visible void __irq_entry smp_trace_x86_platform_ipi(struct pt_regs *regs)
set_irq_regs(old_regs); set_irq_regs(old_regs);
} }
EXPORT_SYMBOL_GPL(vector_used_by_percpu_irq);
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
/* These two declarations are only used in check_irq_vectors_for_cpu_disable() /* These two declarations are only used in check_irq_vectors_for_cpu_disable()
......
...@@ -55,18 +55,6 @@ DEFINE_PER_CPU(vector_irq_t, vector_irq) = { ...@@ -55,18 +55,6 @@ DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
[0 ... NR_VECTORS - 1] = VECTOR_UNUSED, [0 ... NR_VECTORS - 1] = VECTOR_UNUSED,
}; };
int vector_used_by_percpu_irq(unsigned int vector)
{
int cpu;
for_each_online_cpu(cpu) {
if (!IS_ERR_OR_NULL(per_cpu(vector_irq, cpu)[vector]))
return 1;
}
return 0;
}
void __init init_ISA_irqs(void) void __init init_ISA_irqs(void)
{ {
struct irq_chip *chip = legacy_pic->chip; struct irq_chip *chip = legacy_pic->chip;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment