[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101003105500.GA9844@angua.secretlab.ca>
Date: Sun, 3 Oct 2010 04:55:00 -0600
From: Grant Likely <grant.likely@...retlab.ca>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>, linux-arch@...r.kernel.org,
Linus Torvalds <torvalds@...l.org>,
Andrew Morton <akpm@...ux-foundation.org>, x86@...nel.org,
Peter Zijlstra <peterz@...radead.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mundt <lethal@...ux-sh.org>,
Russell King <linux@....linux.org.uk>,
David Woodhouse <dwmw2@...radead.org>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Yinghai Lu <yinghai@...nel.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>
Subject: Re: [patch 16/47] genirq: Implement sane enumeration
On Thu, Sep 30, 2010 at 11:15:51PM -0000, Thomas Gleixner wrote:
> Use the allocator bitmap to lookup active interrupts.
>
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> ---
[...]
> Index: linux-2.6-tip/kernel/irq/irqdesc.c
> ===================================================================
> --- linux-2.6-tip.orig/kernel/irq/irqdesc.c
> +++ linux-2.6-tip/kernel/irq/irqdesc.c
> @@ -470,6 +470,23 @@ err:
> return ret;
> }
>
> +/**
> + * irq_get_next_irq - get next allocated irq number
> + * @offset: where to start the search
> + *
> + * Returns next irq number after offset or nr_irqs if none is found.
> + */
> +unsigned int irq_get_next_irq(unsigned int offset)
> +{
> + unsigned long flags;
> + unsigned int res;
> +
> + raw_spin_lock_irqsave(&sparse_irq_lock, flags);
> + res = find_next_bit_set(allocated_irqs, nr_irqs, offset);
> + raw_spin_unlock_irqsave(&sparse_irq_lock, flags);
> + return res;
> +}
Where is the bitmap defined? I don't see it in the queue; but I also
notice that patch #14 is missing. Is it defined there?
g.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists