EMAC driver: shorten the mdelay value to solve netperf performance issue

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Bryan Wu 2008-01-30 16:52:21 +08:00 committed by David S. Miller
parent 8ee8e92254
commit 6db9e4617e

View file

@ -296,7 +296,7 @@ static void mdio_poll(void)
/* poll the STABUSY bit */ /* poll the STABUSY bit */
while ((bfin_read_EMAC_STAADD()) & STABUSY) { while ((bfin_read_EMAC_STAADD()) & STABUSY) {
mdelay(10); udelay(1);
if (timeout_cnt-- < 0) { if (timeout_cnt-- < 0) {
printk(KERN_ERR DRV_NAME printk(KERN_ERR DRV_NAME
": wait MDC/MDIO transaction to complete timeout\n"); ": wait MDC/MDIO transaction to complete timeout\n");
@ -551,7 +551,7 @@ static void adjust_tx_list(void)
*/ */
if (current_tx_ptr->next->next == tx_list_head) { if (current_tx_ptr->next->next == tx_list_head) {
while (tx_list_head->status.status_word == 0) { while (tx_list_head->status.status_word == 0) {
mdelay(10); mdelay(1);
if (tx_list_head->status.status_word != 0 if (tx_list_head->status.status_word != 0
|| !(bfin_read_DMA2_IRQ_STATUS() & 0x08)) { || !(bfin_read_DMA2_IRQ_STATUS() & 0x08)) {
goto adjust_head; goto adjust_head;