From: Paul Mundt <lethal@linux-sh.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>, linux-kernel@vger.kernel.org
Subject: [PATCH] genirq: Add single IRQ reservation helper.
Date: Tue, 26 Oct 2010 16:19:13 +0900 [thread overview]
Message-ID: <20101026071912.GD4733@linux-sh.org> (raw)
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 */
next reply other threads:[~2010-10-26 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-26 7:19 Paul Mundt [this message]
2010-10-26 8:36 ` [tip:irq/core] genirq: Add single IRQ reservation helper tip-bot for Paul Mundt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101026071912.GD4733@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.