public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] genirq: Add single IRQ reservation helper.
@ 2010-10-26  7:19 Paul Mundt
  2010-10-26  8:36 ` [tip:irq/core] " tip-bot for Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Mundt @ 2010-10-26  7:19 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Ingo Molnar, linux-kernel

For cases that wish to reserve a single IRQ simply provide a wrapper in
to the ranged reservation routine.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

---

I picked irq_reserve_irq() to follow the irq_alloc_descs/desc naming
scheme, but perhaps irq_reserve() or irq_reserve_at() is less visually
offensive? Feel free to mangle away as necessary :-)

 include/linux/irq.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/irq.h b/include/linux/irq.h
index e963911..abde252 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -412,6 +412,11 @@ 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);
+}
+
 #endif /* CONFIG_GENERIC_HARDIRQS */
 
 #endif /* !CONFIG_S390 */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:irq/core] genirq: Add single IRQ reservation helper
  2010-10-26  7:19 [PATCH] genirq: Add single IRQ reservation helper Paul Mundt
@ 2010-10-26  8:36 ` tip-bot for Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Paul Mundt @ 2010-10-26  8:36 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, lethal, tglx

Commit-ID:  639bd12f778d55a2632fde5af7d0719abc1871b9
Gitweb:     http://git.kernel.org/tip/639bd12f778d55a2632fde5af7d0719abc1871b9
Author:     Paul Mundt <lethal@linux-sh.org>
AuthorDate: Tue, 26 Oct 2010 16:19:13 +0900
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 26 Oct 2010 10:33:27 +0200

genirq: Add single IRQ reservation helper

For cases that wish to reserve a single IRQ at a given place simply
provide a wrapper in to the ranged reservation routine.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
LKML-Reference: <20101026071912.GD4733@linux-sh.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 include/linux/irq.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/irq.h b/include/linux/irq.h
index e963911..abde252 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -412,6 +412,11 @@ 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);
+}
+
 #endif /* CONFIG_GENERIC_HARDIRQS */
 
 #endif /* !CONFIG_S390 */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-26  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-26  7:19 [PATCH] genirq: Add single IRQ reservation helper Paul Mundt
2010-10-26  8:36 ` [tip:irq/core] " tip-bot for Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox