Commit efc36dbd authored by Luciano Coelho's avatar Luciano Coelho Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: don't run automatic checks if CT was caused by debugfs



If we're manually testing the CT kill functionality via debugfs, we
shouldn't schedule the work to recheck the temperature after the
ct_kill_duration period has passed.

Signed-off-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
Reviewed-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent b689fa79
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -319,6 +319,12 @@ static void iwl_mvm_enter_ctkill(struct iwl_mvm *mvm)

	IWL_ERR(mvm, "Enter CT Kill\n");
	iwl_mvm_set_hw_ctkill_state(mvm, true);

	/* Don't schedule an exit work if we're in test mode, since
	 * the temperature will not change unless we manually set it
	 * again (or disable testing).
	 */
	if (!mvm->temperature_test)
		schedule_delayed_work(&mvm->thermal_throttle.ct_kill_exit,
				      round_jiffies_relative(duration * HZ));
}