lkml.org 
[lkml]   [2003]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 4/13] use cpu_relax() in busy loop
    From
    Date
    On Fri, 2003-09-19 at 01:31, Chris Wright wrote:
    > Replace busy loop nop with cpu_relax().
    >
    > ===== drivers/cdrom/sonycd535.c 1.39 vs edited =====
    > --- 1.39/drivers/cdrom/sonycd535.c Tue Sep 9 07:41:30 2003
    > +++ edited/drivers/cdrom/sonycd535.c Thu Sep 18 10:52:41 2003
    > @@ -1526,7 +1526,8 @@
    > enable_interrupts();
    > outb(0, read_status_reg); /* does a reset? */
    > delay = jiffies + HZ/10;
    > - while (time_before(jiffies, delay)) ;
    > + while (time_before(jiffies, delay))
    > + cpu_relax();

    mdelay ?
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:3.588 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site