[PATCH 4/13] use cpu_relax() in busy loop

From: Chris Wright
Date: Thu Sep 18 2003 - 18:33:01 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/