Skip to content

Commit

Permalink
irq: Export per-cpu irq allocation and de-allocation functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maxime Ripard authored and David S. Miller committed Sep 29, 2015
1 parent a1b7feb commit aec2e2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1761,6 +1761,7 @@ void free_percpu_irq(unsigned int irq, void __percpu *dev_id)
kfree(__free_percpu_irq(irq, dev_id));
chip_bus_sync_unlock(desc);
}
EXPORT_SYMBOL_GPL(free_percpu_irq);

/**
* setup_percpu_irq - setup a per-cpu interrupt
Expand Down Expand Up @@ -1832,6 +1833,7 @@ int request_percpu_irq(unsigned int irq, irq_handler_t handler,

return retval;
}
EXPORT_SYMBOL_GPL(request_percpu_irq);

/**
* irq_get_irqchip_state - returns the irqchip state of a interrupt.
Expand Down

0 comments on commit aec2e2a

Please sign in to comment.