2010/8/24 Mike Frysinger <[email protected]>:
> On Tuesday, August 24, 2010 07:28:00 Frans Meulenbroeks wrote:
>> commit c00e9e68d7f77cc3cf3475203860a66cafeba449:
>> Use already cached fp rather than constantly re-opening things on the fly.
>> breaks gpio operation.
>> It is possible to reuse the cached fp, but then we need to seek to the
>> beginning each time.
>> /sys/class/gpio/gpio*/value contains only one byte so without seek
>> we will get only one byte.
>
> ive changed it to rewind().  however, this sounds like useless overhead at the
> kernel level.  i'll start a thread on lkml complaining about being forced to
> make two system calls when one should be sufficient.  i'd point out that my
> simple gpio driver design didnt have this limitation :P.
> -mike
>
Do you by any chance have a patch (or a slighly more detailed clue
where to look)?
I'm running urjtag on a self-compiled kernel and I would like to
measure the benefit of getting rid of fseek/lseek.

Thanks alot! Frans

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to