Messages in this thread Patch in this message | | | Date | Thu, 18 Sep 2003 16:43:17 -0700 | From | Chris Wright <> | Subject | [PATCH 12/13] use cpu_relax() in busy loop |
| |
Replace busy loop nop with cpu_relax().
===== drivers/scsi/i91uscsi.c 1.6 vs edited ===== --- 1.6/drivers/scsi/i91uscsi.c Fri May 2 12:34:33 2003 +++ edited/drivers/scsi/i91uscsi.c Thu Sep 18 11:49:49 2003 @@ -212,7 +212,8 @@ { /* Pause for amount jiffies */ unsigned long the_time = jiffies + amount; - while (time_before_eq(jiffies, the_time)); + while (time_before_eq(jiffies, the_time)) + cpu_relax(); } /*-- forward reference --*/ - 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/
| |