iwlwifi: pcie: avoid msleep() with short timeout
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2016 08:31:14 +0000 (10:31 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 10 May 2016 19:34:08 +0000 (22:34 +0300)
commit192185d68dcc9b4517001fcec645111946f84d40
tree4d5a8641ff3a4c52f7fed5a25fe2f2029362bbfe
parentb7a08b284dcf7fb3d7b99473a87fabad04b2c548
iwlwifi: pcie: avoid msleep() with short timeout

Since msleep is based on jiffies, it can sleep for a long time.
Use usleep_range() instead to shorten the maximum time.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c