lkml.org 
[lkml]   [2001]   [Dec]   [31]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] Prefetching file_read_actor()
DateMon, 31 Dec 2001 13:00:21 +0000 (GMT)
FromAlan Cox <>
> > +
> > +       if (size > 128) {
> > +               int i;
> > +               for(i=0; i<size; i+=64) {
> > +                       prefetch (kaddr+offset);
> > +                       prefetch (kaddr+offset+(L1_CACHE_BYTES*2));
> > +               }
> > +       }
> > +

Thats almost certainly wrong for most processors. It might work on the PIII
but I wouldnt trust the right results on others. Fix copy_to_user to
have a prefetching version if appropriate

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:14    [from the cache]
©2003-2008