Commit 86bbb1e1 authored by Johannes Berg's avatar Johannes Berg Committed by Luca Coelho
Browse files

iwlwifi: mvm: use schedule_delayed_work()



There's no need to refer to system_wq directly, use the provided
wrapper schedule_delayed_work().

Made with the following spatch:
    @@
    expression E,F;
    @@
    -queue_delayed_work(system_wq, E, F);
    +schedule_delayed_work(E, F);

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 504bd624
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -927,7 +927,7 @@ int iwl_mvm_fw_dbg_collect_desc(struct iwl_mvm *mvm,
	mvm->fw_dump_desc = desc;
	mvm->fw_dump_trig = trigger;

	queue_delayed_work(system_wq, &mvm->fw_dump_wk, delay);
	schedule_delayed_work(&mvm->fw_dump_wk, delay);

	return 0;
}
+3 −3
Original line number Diff line number Diff line
@@ -1632,7 +1632,7 @@ void iwl_mvm_channel_switch_noa_notif(struct iwl_mvm *mvm,

	IWL_DEBUG_INFO(mvm, "Channel Switch Started Notification\n");

	queue_delayed_work(system_wq, &mvm->cs_tx_unblock_dwork,
	schedule_delayed_work(&mvm->cs_tx_unblock_dwork,
			      msecs_to_jiffies(IWL_MVM_CS_UNBLOCK_TX_TIMEOUT *
					       csa_vif->bss_conf.beacon_int));

+2 −2
Original line number Diff line number Diff line
@@ -1421,7 +1421,7 @@ int iwl_mvm_reg_scan_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
	mvm->scan_vif = iwl_mvm_vif_from_mac80211(vif);
	iwl_mvm_ref(mvm, IWL_MVM_REF_SCAN);

	queue_delayed_work(system_wq, &mvm->scan_timeout_dwork,
	schedule_delayed_work(&mvm->scan_timeout_dwork,
			      msecs_to_jiffies(SCAN_TIMEOUT));

	return 0;
+1 −2
Original line number Diff line number Diff line
@@ -551,8 +551,7 @@ void iwl_mvm_tdls_ch_switch_work(struct work_struct *work)

	/* retry after a DTIM if we failed sending now */
	delay = TU_TO_MS(vif->bss_conf.dtim_period * vif->bss_conf.beacon_int);
	queue_delayed_work(system_wq, &mvm->tdls_cs.dwork,
			   msecs_to_jiffies(delay));
	schedule_delayed_work(&mvm->tdls_cs.dwork, msecs_to_jiffies(delay));
out:
	mutex_unlock(&mvm->mutex);
}