lkml.org 
[lkml]   [2008]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch 2.6.25-rc5 1/2] gpiolib: dynamic gpio number allocation
Date
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


\
 
 \ /
  Last update: 2008-03-14 00:21    [W:0.054 / U:1.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site