lkml.org 
[lkml]   [2010]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [Patch] fix MTD CFI/LPDDR flash driver huge latency bug
    From
    Date
    Am Freitag, den 12.03.2010, 23:38 +0000 schrieb Jamie Lokier:
    > Andrew Morton wrote:
    > > On Sat, 06 Mar 2010 17:48:57 +0100
    > > Stefani Seibold <stefani@seibold.net> wrote:
    > >


    > > > The patch change all the use of spin_lock operations for xxxx->mutex
    > > > into mutex operations, which is exact what the name says and means.
    >
    > It would be even better if it also split the critical sections into
    > smaller ones with cond_resched() between, so that non-preemptible
    > kernels benefit too.
    >

    The problem is the memcpy operation which is very slow. A cond_resched
    wouldn't help, since the cpu bus is blocked during the transfer of the
    word.





    \
     
     \ /
      Last update: 2010-03-13 13:37    [W:0.021 / U:32.328 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site