Re: [patch 2.6.25-rc5 1/2] gpiolib: dynamic gpio number allocation
From: David Brownell
Date: Thu Mar 13 2008 - 19:19:19 EST
On Thursday 13 March 2008, Andrew Morton wrote:
> hm. I suppose that if someone want a huge number of GPIOs then we can
> convert this to a bitmap or an IDR tree easily enough.
Actually, I tried IDRs for a while and they broke platforms
which needed to initialize and use GPIOs early: before kmalloc
would work. A real PITA that was -- and slow too.
> Shouldn't ARCH_NR_GPIOS be CONFIG_NR_GPIOS?
No more than NR_IRQS is settable via Kconfig. And for
rather similar reasons. :)
- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/