Re: [patch 16/47] genirq: Implement sane enumeration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
> ---
[...]
> 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-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux