]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86/irq: Remove vector_used_by_percpu_irq()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Aug 2017 06:47:16 +0000 (08:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2017 09:42:20 +0000 (11:42 +0200)
Last user (lguest) is gone. Remove it.

Signed-off-by: Thomas 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.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/irq.h
arch/x86/kernel/irq.c
arch/x86/kernel/irqinit.c

index 668cca540025b017e78ba49aba4f762c9a733abb..ce991689843f5e85ee3213e76d431bee6ad8fcb7 100644 (file)
@@ -44,7 +44,6 @@ extern __visible unsigned int do_IRQ(struct pt_regs *regs);
 
 /* Interrupt vector management */
 extern DECLARE_BITMAP(used_vectors, NR_VECTORS);
-extern int vector_used_by_percpu_irq(unsigned int vector);
 
 extern void init_ISA_irqs(void);
 
index 4ed0aba8dbc83b6ef83aed558ae4c459009d9146..e6073a0ce77eb690bb5fbba4ed8acf913f58fe38 100644 (file)
@@ -346,8 +346,6 @@ __visible void __irq_entry smp_trace_x86_platform_ipi(struct pt_regs *regs)
        set_irq_regs(old_regs);
 }
 
-EXPORT_SYMBOL_GPL(vector_used_by_percpu_irq);
-
 #ifdef CONFIG_HOTPLUG_CPU
 
 /* These two declarations are only used in check_irq_vectors_for_cpu_disable()
index c7fd18526c3e3087dee25af3ab0c3f3ff7dc616b..6537cfe2cb1d2b4bf81e26b186f72b2ffc4112cd 100644 (file)
@@ -55,18 +55,6 @@ DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
        [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)
 {
        struct irq_chip *chip = legacy_pic->chip;