]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d1f50843ef28f2007b19209c0364d057899045d
tree4d5a8641ff3a4c52f7fed5a25fe2f2029362bbfe
parenta789a491ac8a6ab909a63814eafc596fa7e2f9f5
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