diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-09-25 12:09:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 14:51:40 -0400 |
commit | a1b7febd725a2cdfc8ac245b7b7437ce4b91aecb (patch) | |
tree | 8dccf5bc50af2e9223be830f740dc2c986613ce2 /kernel | |
parent | 8a4683a5e06efda7e1f327213678d4dcafc0d894 (diff) |
genirq: Fix the documentation of request_percpu_irq
The documentation of request_percpu_irq is confusing and suggest that the
interrupt is not enabled at all, while it is actually enabled on the local
CPU.
Clarify that.
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')
-rw-r--r-- | kernel/irq/manage.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index f9a59f6cabd2..a4360f0f62a5 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -1790,9 +1790,10 @@ int setup_percpu_irq(unsigned int irq, struct irqaction *act) | |||
1790 | * @devname: An ascii name for the claiming device | 1790 | * @devname: An ascii name for the claiming device |
1791 | * @dev_id: A percpu cookie passed back to the handler function | 1791 | * @dev_id: A percpu cookie passed back to the handler function |
1792 | * | 1792 | * |
1793 | * This call allocates interrupt resources, but doesn't | 1793 | * This call allocates interrupt resources and enables the |
1794 | * automatically enable the interrupt. It has to be done on each | 1794 | * interrupt on the local CPU. If the interrupt is supposed to be |
1795 | * CPU using enable_percpu_irq(). | 1795 | * enabled on other CPUs, it has to be done on each CPU using |
1796 | * enable_percpu_irq(). | ||
1796 | * | 1797 | * |
1797 | * Dev_id must be globally unique. It is a per-cpu variable, and | 1798 | * Dev_id must be globally unique. It is a per-cpu variable, and |
1798 | * the handler gets called with the interrupted CPU's instance of | 1799 | * the handler gets called with the interrupted CPU's instance of |