lkml.org 
[lkml]   [2003]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 4/13] use cpu_relax() in busy loop
    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();

    sony535_irq_used = probe_irq_off(irq_mask);
    disable_interrupts();
    -
    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 13:48    [W:0.019 / U:2.620 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site