]> git.baikalelectronics.ru Git - kernel.git/commit
rt2800: replace msleep() with usleep_range() on channel switch
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 19 Dec 2016 10:52:56 +0000 (11:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:34:21 +0000 (13:34 +0200)
commit976ea40708d673e47a787e6c9388503eff0ca991
tree00bb945b9cd910ac9d3f89ac26bb614f212cd091
parentdc4433d408593ed066090477938600a59a6bce86
rt2800: replace msleep() with usleep_range() on channel switch

msleep(1) can sleep much more time then requested 1ms, this is not good
on channel switch, which we want to be performed fast (i.e. to make scan
faster). Replace msleep() with usleep_range(), which has much smaller
maximum sleeping time boundary.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c