aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
diff options
context:
space:
mode:
authorDon Fry <donald.h.fry@intel.com>2012-03-07 12:52:37 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-08 13:59:55 -0500
commit83626404a70da74c67f32f119e53c0ba032ba2d8 (patch)
treefdd6cff4fdffbe099d24a0c0dc8c6d07f6aca900 /drivers/net/wireless/iwlwifi/iwl-agn-tt.c
parent9bdfbfadc4f0b3a756b54e7ec7cfaf92c22ce258 (diff)
iwlwifi: more status bit factoring
Continue splitting the status bits between transport and op_mode. All but a few are separated. Signed-off-by: Don Fry <donald.h.fry@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tt.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-tt.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tt.c b/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
index fa9415309cd6..baaf5ba2fc38 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-tt.c
@@ -174,7 +174,7 @@ static void iwl_tt_check_exit_ct_kill(unsigned long data)
174 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; 174 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
175 unsigned long flags; 175 unsigned long flags;
176 176
177 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 177 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
178 return; 178 return;
179 179
180 if (tt->state == IWL_TI_CT_KILL) { 180 if (tt->state == IWL_TI_CT_KILL) {
@@ -225,7 +225,7 @@ static void iwl_tt_ready_for_ct_kill(unsigned long data)
225 struct iwl_priv *priv = (struct iwl_priv *)data; 225 struct iwl_priv *priv = (struct iwl_priv *)data;
226 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; 226 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
227 227
228 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 228 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
229 return; 229 return;
230 230
231 /* temperature timer expired, ready to go into CT_KILL state */ 231 /* temperature timer expired, ready to go into CT_KILL state */
@@ -504,10 +504,10 @@ static void iwl_bg_ct_enter(struct work_struct *work)
504 struct iwl_priv *priv = container_of(work, struct iwl_priv, ct_enter); 504 struct iwl_priv *priv = container_of(work, struct iwl_priv, ct_enter);
505 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; 505 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
506 506
507 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 507 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
508 return; 508 return;
509 509
510 if (!iwl_is_ready(priv->shrd)) 510 if (!iwl_is_ready(priv))
511 return; 511 return;
512 512
513 if (tt->state != IWL_TI_CT_KILL) { 513 if (tt->state != IWL_TI_CT_KILL) {
@@ -533,10 +533,10 @@ static void iwl_bg_ct_exit(struct work_struct *work)
533 struct iwl_priv *priv = container_of(work, struct iwl_priv, ct_exit); 533 struct iwl_priv *priv = container_of(work, struct iwl_priv, ct_exit);
534 struct iwl_tt_mgmt *tt = &priv->thermal_throttle; 534 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
535 535
536 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 536 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
537 return; 537 return;
538 538
539 if (!iwl_is_ready(priv->shrd)) 539 if (!iwl_is_ready(priv))
540 return; 540 return;
541 541
542 /* stop ct_kill_exit_tm timer */ 542 /* stop ct_kill_exit_tm timer */
@@ -563,7 +563,7 @@ static void iwl_bg_ct_exit(struct work_struct *work)
563 563
564void iwl_tt_enter_ct_kill(struct iwl_priv *priv) 564void iwl_tt_enter_ct_kill(struct iwl_priv *priv)
565{ 565{
566 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 566 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
567 return; 567 return;
568 568
569 IWL_DEBUG_TEMP(priv, "Queueing critical temperature enter.\n"); 569 IWL_DEBUG_TEMP(priv, "Queueing critical temperature enter.\n");
@@ -572,7 +572,7 @@ void iwl_tt_enter_ct_kill(struct iwl_priv *priv)
572 572
573void iwl_tt_exit_ct_kill(struct iwl_priv *priv) 573void iwl_tt_exit_ct_kill(struct iwl_priv *priv)
574{ 574{
575 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 575 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
576 return; 576 return;
577 577
578 IWL_DEBUG_TEMP(priv, "Queueing critical temperature exit.\n"); 578 IWL_DEBUG_TEMP(priv, "Queueing critical temperature exit.\n");
@@ -584,7 +584,7 @@ static void iwl_bg_tt_work(struct work_struct *work)
584 struct iwl_priv *priv = container_of(work, struct iwl_priv, tt_work); 584 struct iwl_priv *priv = container_of(work, struct iwl_priv, tt_work);
585 s32 temp = priv->temperature; /* degrees CELSIUS except specified */ 585 s32 temp = priv->temperature; /* degrees CELSIUS except specified */
586 586
587 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 587 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
588 return; 588 return;
589 589
590 if (!priv->thermal_throttle.advanced_tt) 590 if (!priv->thermal_throttle.advanced_tt)
@@ -595,7 +595,7 @@ static void iwl_bg_tt_work(struct work_struct *work)
595 595
596void iwl_tt_handler(struct iwl_priv *priv) 596void iwl_tt_handler(struct iwl_priv *priv)
597{ 597{
598 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 598 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
599 return; 599 return;
600 600
601 IWL_DEBUG_TEMP(priv, "Queueing thermal throttling work.\n"); 601 IWL_DEBUG_TEMP(priv, "Queueing thermal throttling work.\n");