diff options
author | Bryan Wu <bryan.wu@analog.com> | 2008-01-30 03:52:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-03 07:28:46 -0500 |
commit | 6db9e4617e9bdf9d31fbea165b10cb95318adf8c (patch) | |
tree | 183e2a74f43096cfeac9497cd6b8ddc4d89f21b6 /drivers/net/bfin_mac.c | |
parent | 8ee8e922541a3dea0b53b177a3c5ccbf03631408 (diff) |
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>
Diffstat (limited to 'drivers/net/bfin_mac.c')
-rw-r--r-- | drivers/net/bfin_mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index eb971755a3ff..4006a5dea654 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c | |||
@@ -296,7 +296,7 @@ static void mdio_poll(void) | |||
296 | 296 | ||
297 | /* poll the STABUSY bit */ | 297 | /* poll the STABUSY bit */ |
298 | while ((bfin_read_EMAC_STAADD()) & STABUSY) { | 298 | while ((bfin_read_EMAC_STAADD()) & STABUSY) { |
299 | mdelay(10); | 299 | udelay(1); |
300 | if (timeout_cnt-- < 0) { | 300 | if (timeout_cnt-- < 0) { |
301 | printk(KERN_ERR DRV_NAME | 301 | printk(KERN_ERR DRV_NAME |
302 | ": wait MDC/MDIO transaction to complete timeout\n"); | 302 | ": wait MDC/MDIO transaction to complete timeout\n"); |
@@ -551,7 +551,7 @@ static void adjust_tx_list(void) | |||
551 | */ | 551 | */ |
552 | if (current_tx_ptr->next->next == tx_list_head) { | 552 | if (current_tx_ptr->next->next == tx_list_head) { |
553 | while (tx_list_head->status.status_word == 0) { | 553 | while (tx_list_head->status.status_word == 0) { |
554 | mdelay(10); | 554 | mdelay(1); |
555 | if (tx_list_head->status.status_word != 0 | 555 | if (tx_list_head->status.status_word != 0 |
556 | || !(bfin_read_DMA2_IRQ_STATUS() & 0x08)) { | 556 | || !(bfin_read_DMA2_IRQ_STATUS() & 0x08)) { |
557 | goto adjust_head; | 557 | goto adjust_head; |