]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
genirq: Remove irq_reserve_irq[s]
authorThomas Gleixner <tglx@linutronix.de>
Wed, 7 May 2014 15:44:21 +0000 (15:44 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 May 2014 12:05:22 +0000 (14:05 +0200)
No more users. And it's not going to come back. If you need
hotplugable irq chips, use irq domains.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-and-acked-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Tony Luck <tony.luck@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140507154340.302183048@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h
kernel/irq/irqdesc.c

index ac9634286f42a729c0aeac52f217efc8c7152207..2110f46fcafa6950c915a0bac9a0e97bc71faea0 100644 (file)
@@ -617,18 +617,11 @@ int __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node,
        irq_alloc_descs(-1, from, cnt, node)
 
 void irq_free_descs(unsigned int irq, unsigned int cnt);
-int irq_reserve_irqs(unsigned int from, unsigned int cnt);
-
 static inline void irq_free_desc(unsigned int irq)
 {
        irq_free_descs(irq, 1);
 }
 
-static inline int irq_reserve_irq(unsigned int irq)
-{
-       return irq_reserve_irqs(irq, 1);
-}
-
 #ifdef CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ
 unsigned int irq_alloc_hwirqs(int cnt, int node);
 static inline unsigned int irq_alloc_hwirq(int node)
index 24029348729baef69dc547383cf5d729e3c1c69c..d514ed6080e1cf2ae3cb74d5f9e01a53f40e42b1 100644 (file)
@@ -454,31 +454,6 @@ void irq_free_hwirqs(unsigned int from, int cnt)
 EXPORT_SYMBOL_GPL(irq_free_hwirqs);
 #endif
 
-/**
- * irq_reserve_irqs - mark irqs allocated
- * @from:      mark from irq number
- * @cnt:       number of irqs to mark
- *
- * Returns 0 on success or an appropriate error code
- */
-int irq_reserve_irqs(unsigned int from, unsigned int cnt)
-{
-       unsigned int start;
-       int ret = 0;
-
-       if (!cnt || (from + cnt) > nr_irqs)
-               return -EINVAL;
-
-       mutex_lock(&sparse_irq_lock);
-       start = bitmap_find_next_zero_area(allocated_irqs, nr_irqs, from, cnt, 0);
-       if (start == from)
-               bitmap_set(allocated_irqs, start, cnt);
-       else
-               ret = -EEXIST;
-       mutex_unlock(&sparse_irq_lock);
-       return ret;
-}
-
 /**
  * irq_get_next_irq - get next allocated irq number
  * @offset:    where to start the search