]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: remove queue_info_lock
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Jul 2018 21:19:13 +0000 (23:19 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Sun, 11 Nov 2018 09:06:14 +0000 (11:06 +0200)
commitd9e1e35192612b47a688d9180bf2c2ea0e1cab90
tree66ad8d1e8575419452519bdb5ccb4945ae83500b
parent3308e0b57195e1587012ceae3d492fd9556d071f
iwlwifi: mvm: remove queue_info_lock

All the queue management code runs under mvm->mutex, so there are
only very few cases of accessing the data structures without it:
 * TX path, which doesn't take any locks anyway
 * iwl_mvm_wake_sw_queue() and iwl_mvm_stop_sw_queue() where we
   just (atomically) read a bitmap, so the lock isn't needed.

Therefore, we can remove the spinlock. This enables some cleanup
in the ugly locking in iwl_mvm_inactivity_check().

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
drivers/net/wireless/intel/iwlwifi/mvm/utils.c