|
@@ -383,10 +383,10 @@ EXPORT_SYMBOL(iwl_ht_enabled);
|
|
|
|
|
|
bool iwl_within_ct_kill_margin(struct iwl_priv *priv)
|
|
|
{
|
|
|
- s32 temp = priv->temperature; /* degrees CELSIUS except 4965 */
|
|
|
+ s32 temp = priv->temperature; /* degrees CELSIUS except specified */
|
|
|
bool within_margin = false;
|
|
|
|
|
|
- if ((priv->hw_rev & CSR_HW_REV_TYPE_MSK) == CSR_HW_REV_TYPE_4965)
|
|
|
+ if (priv->cfg->temperature_kelvin)
|
|
|
temp = KELVIN_TO_CELSIUS(priv->temperature);
|
|
|
|
|
|
if (!priv->thermal_throttle.advanced_tt)
|
|
@@ -839,12 +839,12 @@ EXPORT_SYMBOL(iwl_tt_exit_ct_kill);
|
|
|
static void iwl_bg_tt_work(struct work_struct *work)
|
|
|
{
|
|
|
struct iwl_priv *priv = container_of(work, struct iwl_priv, tt_work);
|
|
|
- s32 temp = priv->temperature; /* degrees CELSIUS except 4965 */
|
|
|
+ s32 temp = priv->temperature; /* degrees CELSIUS except specified */
|
|
|
|
|
|
if (test_bit(STATUS_EXIT_PENDING, &priv->status))
|
|
|
return;
|
|
|
|
|
|
- if ((priv->hw_rev & CSR_HW_REV_TYPE_MSK) == CSR_HW_REV_TYPE_4965)
|
|
|
+ if (priv->cfg->temperature_kelvin)
|
|
|
temp = KELVIN_TO_CELSIUS(priv->temperature);
|
|
|
|
|
|
if (!priv->thermal_throttle.advanced_tt)
|