net: ll_temac: Replace bad usage of msleep() with usleep_range()
Use usleep_range() to avoid problems with msleep() actually sleeping much longer than expected. Signed-off-by: Esben Haabendal <esben@geanix.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2c9938e738
commit
901d14ab55
@ -92,7 +92,7 @@ int temac_indirect_busywait(struct temac_local *lp)
|
||||
WARN_ON(1);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
msleep(1);
|
||||
usleep_range(500, 1000);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user