Skip to content

Commit

Permalink
EMAC driver: shorten the mdelay value to solve netperf performance issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bryan Wu authored and David S. Miller committed Feb 3, 2008
1 parent 8ee8e92 commit 6db9e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static void mdio_poll(void)

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

0 comments on commit 6db9e46

Please sign in to comment.