[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080313235433.GA28010@zarina>
Date: Fri, 14 Mar 2008 02:54:33 +0300
From: Anton Vorontsov <cbouatmailru@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: David Brownell <david-b@...bell.net>, linux-kernel@...r.kernel.org,
avorontsov@...mvista.com
Subject: Re: [patch 2.6.25-rc5 1/2] gpiolib: dynamic gpio number allocation
On Thu, Mar 13, 2008 at 04:28:03PM -0700, Andrew Morton wrote:
> On Thu, 13 Mar 2008 15:18:58 -0800
> David Brownell <david-b@...bell.net> wrote:
>
> > 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.
>
> If IDRs were slow, that linear search will be glacial.
Heh.. FWIW, I didn't notice any slowness of that linear search.
I didn't bother to try anything more complicated than linear search
for mere 256 GPIOs. I doubt that IDRs will pour out into any
measurable win even for something like 1024 GPIOs.
--
Anton Vorontsov
email: cbouatmailru@...il.com
irc://irc.freenode.net/bd2
--
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