From 91216e1ef102dab59de0cc02d1476ba028d4aa9c Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Fri, 18 Jul 2008 01:00:54 +0000 Subject: [PATCH] Use DELAY() instead of pause if waiting time is less than 1ms. This will fix driver hang if hz < 1000. Pointed out by: thompsa --- sys/dev/age/if_age.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/age/if_age.c b/sys/dev/age/if_age.c index 0b7165eed25a..c95c7b72bb6c 100644 --- a/sys/dev/age/if_age.c +++ b/sys/dev/age/if_age.c @@ -492,9 +492,9 @@ age_phy_reset(struct age_softc *sc) /* Reset PHY. */ CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_RST); - pause("agephy", hz / 1000); + DELAY(1000); CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_CLR); - pause("agephy", hz / 1000); + DELAY(1000); } static int