mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for Paul Mundt <lethal@linux-sh.org>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
	lethal@linux-sh.org, tglx@linutronix.de
Subject: [tip:irq/core] genirq: Add single IRQ reservation helper
Date: Tue, 26 Oct 2010 08:36:52 GMT	[thread overview]
Message-ID: <tip-639bd12f778d55a2632fde5af7d0719abc1871b9@git.kernel.org> (raw)
In-Reply-To: <20101026071912.GD4733@linux-sh.org>

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 */

      reply	other threads:[~2010-10-26  8:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  7:19 [PATCH] " Paul Mundt
2010-10-26  8:36 ` tip-bot for Paul Mundt [this message]

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=tip-639bd12f778d55a2632fde5af7d0719abc1871b9@git.kernel.org \
    --to=lethal@linux-sh.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome