]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitf3f240f973d103069d91e559561436e4148a7bac
tree66ad8d1e8575419452519bdb5ccb4945ae83500b
parent06bc6f6ed4ae0246a5e52094d1be90906a1361c7
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