Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 901d14ab authored by Esben Haabendal's avatar Esben Haabendal Committed by David S. Miller
Browse files

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: default avatarEsben Haabendal <esben@geanix.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c9938e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}