diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-09-25 12:09:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 14:51:40 -0400 |
commit | aec2e2ad1786eb07814ae60988e0e306cd24a6cc (patch) | |
tree | 0aaa1c954e175d81eef7908b7db51787c8df42e7 /kernel/irq | |
parent | a1b7febd725a2cdfc8ac245b7b7437ce4b91aecb (diff) |
irq: Export per-cpu irq allocation and de-allocation functions
Some drivers might use the per-cpu interrupts and still might be built as a
module. Export request_percpu_irq an free_percpu_irq to these user, which
also make it consistent with enable/disable_percpu_irq that were exported.
Reported-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/manage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index a4360f0f62a5..4c213864ec45 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -1761,6 +1761,7 @@ void free_percpu_irq(unsigned int irq, void __percpu *dev_id) | |||
1761 | kfree(__free_percpu_irq(irq, dev_id)); | 1761 | kfree(__free_percpu_irq(irq, dev_id)); |
1762 | chip_bus_sync_unlock(desc); | 1762 | chip_bus_sync_unlock(desc); |
1763 | } | 1763 | } |
1764 | EXPORT_SYMBOL_GPL(free_percpu_irq); | ||
1764 | 1765 | ||
1765 | /** | 1766 | /** |
1766 | * setup_percpu_irq - setup a per-cpu interrupt | 1767 | * setup_percpu_irq - setup a per-cpu interrupt |
@@ -1832,6 +1833,7 @@ int request_percpu_irq(unsigned int irq, irq_handler_t handler, | |||
1832 | 1833 | ||
1833 | return retval; | 1834 | return retval; |
1834 | } | 1835 | } |
1836 | EXPORT_SYMBOL_GPL(request_percpu_irq); | ||
1835 | 1837 | ||
1836 | /** | 1838 | /** |
1837 | * irq_get_irqchip_state - returns the irqchip state of a interrupt. | 1839 | * irq_get_irqchip_state - returns the irqchip state of a interrupt. |